語言

UserManager.IsUserUnlocked 屬性

定義

回傳上下文使用者是否處於「解鎖」狀態。

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

屬性值

這是用戶解鎖的值。

屬性

備註

回傳上下文使用者是否處於「解鎖」狀態。

在具備直接開機的裝置上,使用者只有在輸入憑證(例如鎖定模式或 PIN 碼)後才會被解鎖。 在沒有直接開機的裝置上,使用者一開始就會被解鎖。

當使用者被鎖定時,僅有裝置保護的資料儲存空間可用。 當使用者解鎖時,裝置保護與憑證保護的私人應用程式資料儲存空間皆可使用。

Java 文件 android.os.UserManager.isUserUnlocked()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於