Language

ClipboardManager.PrimaryClip Property

Definition

Returns the current primary clip on the clipboard. -or- Sets the current primary clip on the clipboard.

public virtual Android.Content.ClipData? PrimaryClip { [Android.Runtime.Register("getPrimaryClip", "()Landroid/content/ClipData;", "GetGetPrimaryClipHandler")] get; [Android.Runtime.Register("setPrimaryClip", "(Landroid/content/ClipData;)V", "GetSetPrimaryClip_Landroid_content_ClipData_Handler")] set; }
[<get: Android.Runtime.Register("getPrimaryClip", "()Landroid/content/ClipData;", "GetGetPrimaryClipHandler")>]
[<set: Android.Runtime.Register("setPrimaryClip", "(Landroid/content/ClipData;)V", "GetSetPrimaryClip_Landroid_content_ClipData_Handler")>]
member this.PrimaryClip : Android.Content.ClipData with get, set

Property Value

The current primary clip on the clipboard. On Android 10 and later, clipboard access may be denied if the app is neither the default input method nor the app with input focus. If access is denied, this property returns null.

Attributes

Remarks

Property getter documentation:

Returns the current primary clip on the clipboard.

On Android 10 and later, clipboard access may be denied if the app is neither the default input method nor the app with input focus. If access is denied, this property returns null.

Java documentation for android.content.ClipboardManager.getPrimaryClip().

Property setter documentation:

Sets the current primary clip on the clipboard. This is the clip that is involved in normal cut and paste operations.

Java documentation for android.content.ClipboardManager.setPrimaryClip(android.content.ClipData).

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.

Applies to