Partager via


KeyguardManager.IsKeyguardSecure Property

Definition

Return whether the keyguard is secured by a PIN, pattern or password or a SIM card is currently locked.

public virtual bool IsKeyguardSecure { [Android.Runtime.Register("isKeyguardSecure", "()Z", "GetIsKeyguardSecureHandler")] get; }
[<get: Android.Runtime.Register("isKeyguardSecure", "()Z", "GetIsKeyguardSecureHandler")>]
member this.IsKeyguardSecure : bool

Property Value

true if a PIN, pattern or password is set or a SIM card is locked.

Attributes

Remarks

Return whether the keyguard is secured by a PIN, pattern or password or a SIM card is currently locked.

See also #isDeviceSecure() which ignores SIM locked states.

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

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