Språk

ClipboardManager.HasPrimaryClip Property

Definition

Returns true if there is currently a primary clip on the clipboard.

public virtual bool HasPrimaryClip { [Android.Runtime.Register("hasPrimaryClip", "()Z", "GetHasPrimaryClipHandler")] get; }
[<get: Android.Runtime.Register("hasPrimaryClip", "()Z", "GetHasPrimaryClipHandler")>]
member this.HasPrimaryClip : bool

Property Value

true if there is currently a primary clip on the clipboard; otherwise, false. 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 false.

Attributes

Remarks

Returns true if there is currently a 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 false.

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

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