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. If the application is neither the default IME nor the application that has input focus, the value is false unless the system grants clipboard access for another reason.

Attributes

Remarks

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

If the application is neither the default IME nor the application that has input focus, this will return 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