KeyguardManager.IsKeyguardSecure Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns whether the user has a secure lock screen or there is a locked SIM card.
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 the user has a secure lock screen or there is a locked SIM card
- Attributes
Remarks
Returns whether the user has a secure lock screen or there is a locked SIM card.
Specifically, this returns true
if at least one of the following is true: <ul> <li>The Context
's user has a secure lock screen. A full user or a profile that uses a separate challenge has a secure lock screen if its lock screen is set to PIN, pattern, or password, as opposed to swipe or none. A profile that uses a unified challenge is considered to have a secure lock screen if and only if its parent user has a secure lock screen.</li> <li>At least one SIM card is currently locked and requires a PIN.</li> </ul>
This method does not consider whether the lock screen is currently showing or not.
See also #isDeviceSecure()
which excludes locked SIM cards.
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.