KeyguardManager.IsDeviceSecure 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.
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 the user has a secure lock screen
- Attributes
Remarks
Returns whether the user has a secure lock screen.
This returns true
if 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.
This method does not consider whether the lock screen is currently showing or not.
See also #isKeyguardSecure()
which includes locked SIM cards.
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.