ClipDescription Class

Definition

Meta-data describing the contents of a ClipData.

[Android.Runtime.Register("android/content/ClipDescription", DoNotGenerateAcw=true)]
public class ClipDescription : Java.Lang.Object, Android.OS.IParcelable, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/content/ClipDescription", DoNotGenerateAcw=true)>]
type ClipDescription = class
    inherit Object
    interface IParcelable
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
ClipDescription
Attributes
Implements

Remarks

Meta-data describing the contents of a ClipData. Provides enough information to know if you can handle the ClipData, but not the data itself.

<div class="special reference"> <h3>Developer Guides</h3>

For more information about using the clipboard framework, read the Copy and Paste developer guide.

</div>

Java documentation for android.content.ClipDescription.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

ClipDescription(ClipDescription)

Create a copy of a ClipDescription.

ClipDescription(ICharSequence, String[])

Create a new clip.

ClipDescription(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

ClipDescription(String, String[])

Create a new clip.

Fields

ClassificationComplete
Obsolete.

Value returned by #getConfidenceScore(String) if text classification has been completed.

ClassificationNotComplete
Obsolete.

Value returned by #getConfidenceScore(String) if text classification has not been completed on the associated clip.

ClassificationNotPerformed
Obsolete.

Value returned by #getConfidenceScore(String) if text classification was not and will not be performed on the associated clip.

ExtraIsRemoteDevice

Indicates that a ClipData's source is a remote device.

ExtraIsSensitive

Indicates that a ClipData contains potentially sensitive information, such as a password or credit card number.

MimetypeTextHtml

The MIME type for a clip holding HTML text.

MimetypeTextIntent

The MIME type for a clip holding an Intent.

MimetypeTextPlain

The MIME type for a clip holding plain text.

MimetypeTextUrilist

The MIME type for a clip holding one or more URIs.

MimetypeUnknown

The MIME type for data whose type is otherwise unknown.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
ClassificationStatus

Returns #CLASSIFICATION_COMPLETE if text classification has been performed on the associated ClipData.

Creator
Extras

Retrieve extended data from the clip description. -or- Add extended data to the clip description.

Handle

The handle to the underlying Android instance.

(Inherited from Object)
IsStyledText

Returns true if the first item of the associated ClipData contains styled text, i.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Label
LabelFormatted

Return the label for this clip.

MimeTypeCount

Return the number of MIME types the clip is available in.

PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Timestamp

Return the timestamp at which the associated ClipData is copied to global clipboard in the System#currentTimeMillis() time base.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
CompareMimeTypes(String, String)

Helper to compare two MIME types, where one may be a pattern.

DescribeContents()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
FilterMimeTypes(String)

Filter the clip description MIME types by the given MIME type.

GetConfidenceScore(String)

Returns a score indicating confidence that an instance of the given entity is present in the first item of the clip data, if that item is plain text and text classification has been performed.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetMimeType(Int32)

Return one of the possible clip MIME types.

HasMimeType(String)

Check whether the clip description contains the given MIME type.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
WriteToParcel(Parcel, ParcelableWriteFlags)

Flatten this object in to a Parcel.

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to