语言

KeyguardManager.IsDeviceSecure 属性

定义

返回用户是否具有安全锁屏。

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

属性值

true 如果用户具有安全锁屏

特性

注解

返回用户是否具有安全锁屏。 如果上下文的用户具有安全锁屏,则返回 true。 如果锁屏设置为 PIN、模式或密码(而不是轻扫或无),则使用单独质询的完全用户或配置文件具有安全锁屏。 如果父用户具有安全锁屏,则使用统一质询的配置文件将被视为具有安全锁屏。 此方法不考虑锁屏当前是否显示。 另请参阅 isKeyguardSecure(),其中包括锁定的 SIM 卡。

Android 参考。android.app.KeyguardManager.isDeviceSecure

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于