Android Guides | Samples

Android.Content.ClipboardManager Class

Interface to the clipboard service, for placing and retrieving text in the global clipboard.

See Also: ClipboardManager

Syntax

[Android.Runtime.Register("android/content/ClipboardManager", DoNotGenerateAcw=true)]
public class ClipboardManager : ClipboardManager

Remarks

Interface to the clipboard service, for placing and retrieving text in the global clipboard.

You do not instantiate this class directly; instead, retrieve it through Context.GetSystemService(String).

The ClipboardManager API itself is very simple: it consists of methods to atomically get and set the current primary clipboard data. That data is expressed as a ClipData object, which defines the protocol for data exchange between applications.

Developer Guides

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

See Also

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11

The members of Android.Content.ClipboardManager are listed below.

See Also: ClipboardManager

Protected Constructors

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

Public Properties

[read-only]
HasPrimaryClipBoolean. Returns true if there is currently a primary clip on the clipboard.
[read-only]
override
HasTextBoolean. Returns true if the clipboard contains text; false otherwise.
PrimaryClipClipData. Returns the current primary clip on the clipboard.
[read-only]
PrimaryClipDescriptionClipDescription. Returns a description of the current primary clip on the clipboard but not a copy of its data.
override
TextFormattedICharSequence. Returns the text on the clipboard.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Public Events