java.lang.Object | |
↳ | android.content.ClipDescription |
Meta-data describing the contents of a
ClipData
. Provides enough
information to know if you can handle the ClipData, but not the data
itself.
For more information about using the clipboard framework, read the Copy and Paste developer guide.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | MIMETYPE_TEXT_HTML | The MIME type for a clip holding HTML text. | |||||||||
String | MIMETYPE_TEXT_INTENT | The MIME type for a clip holding an Intent. | |||||||||
String | MIMETYPE_TEXT_PLAIN | The MIME type for a clip holding plain text. | |||||||||
String | MIMETYPE_TEXT_URILIST | The MIME type for a clip holding one or more URIs. |
[Expand]
Inherited Constants
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
CREATOR |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Create a new clip.
|
||||||||||
|
Create a copy of a ClipDescription.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
Helper to compare two MIME types, where one may be a pattern.
|
||||||||||
|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
|
||||||||||
|
Filter the clip description MIME types by the given MIME type.
|
||||||||||
|
Return the label for this clip.
|
||||||||||
|
Return one of the possible clip MIME types.
|
||||||||||
|
Return the number of MIME types the clip is available in.
|
||||||||||
|
Check whether the clip description contains the given MIME type.
|
||||||||||
|
Returns a string containing a concise, human-readable description of this
object.
|
||||||||||
|
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods
|
|||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
|||||||||||
From interface
android.os.Parcelable
|
The MIME type for a clip holding HTML text.
The MIME type for a clip holding an Intent.
The MIME type for a clip holding plain text.
The MIME type for a clip holding one or more URIs. This should be used for URIs that are meaningful to a user (such as an http: URI). It should not be used for a content: URI that references some other piece of data; in that case the MIME type should be the type of the referenced data.
Create a new clip.
label | Label to show to the user describing this clip. |
---|---|
mimeTypes | An array of MIME types this data is available as. |
Create a copy of a ClipDescription.
Helper to compare two MIME types, where one may be a pattern.
concreteType | A fully-specified MIME type. |
---|---|
desiredType | A desired MIME type that may be a pattern such as */*. |
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Filter the clip description MIME types by the given MIME type. Returns all MIME types in the clip that match the given MIME type.
mimeType | The desired MIME type. May be a pattern. |
---|
Return one of the possible clip MIME types.
Return the number of MIME types the clip is available in.
Check whether the clip description contains the given MIME type.
mimeType | The desired MIME type. May be a pattern. |
---|
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See
Writing a useful
toString
method
if you intend implementing your own
toString
method.
Flatten this object in to a Parcel.
dest | The Parcel in which the object should be written. |
---|---|
flags |
Additional flags about how the object should be written.
May be 0 or
PARCELABLE_WRITE_RETURN_VALUE
.
|