Dela via


KeyguardManager.IsDeviceSecure Property

Definition

Returns whether the device is secured with a PIN, pattern or password.

public virtual bool IsDeviceSecure { [Android.Runtime.Register("isDeviceSecure", "()Z", "GetIsDeviceSecureHandler", ApiSince=23)] get; }
[<get: Android.Runtime.Register("isDeviceSecure", "()Z", "GetIsDeviceSecureHandler", ApiSince=23)>]
member this.IsDeviceSecure : bool

Property Value

true if a PIN, pattern or password was set.

Attributes

Remarks

Returns whether the device is secured with a PIN, pattern or password.

See also #isKeyguardSecure which treats SIM locked states as secure.

Java documentation for android.app.KeyguardManager.isDeviceSecure().

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