Aracılığıyla paylaş


UserManager.IsUserUnlocked Property

Definition

Return whether the context user is running in an "unlocked" state.

public virtual bool IsUserUnlocked { [Android.Runtime.Register("isUserUnlocked", "()Z", "GetIsUserUnlockedHandler", ApiSince=24)] get; }
[<get: Android.Runtime.Register("isUserUnlocked", "()Z", "GetIsUserUnlockedHandler", ApiSince=24)>]
member this.IsUserUnlocked : bool

Property Value

Attributes

Remarks

Return whether the context user is running in an "unlocked" state.

On devices with direct boot, a user is unlocked only after they've entered their credentials (such as a lock pattern or PIN). On devices without direct boot, a user is unlocked as soon as it starts.

When a user is locked, only device-protected data storage is available. When a user is unlocked, both device-protected and credential-protected private app data storage is available.

Java documentation for android.os.UserManager.isUserUnlocked().

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