DevicePolicyManager.GetRequiredStrongAuthTimeout(ComponentName) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定用户能够使用辅助身份验证和非强身份验证进行身份验证的时间,因为上次使用了强方法身份验证(密码、固定或模式)。
[Android.Runtime.Register("getRequiredStrongAuthTimeout", "(Landroid/content/ComponentName;)J", "GetGetRequiredStrongAuthTimeout_Landroid_content_ComponentName_Handler", ApiSince=26)]
public virtual long GetRequiredStrongAuthTimeout(Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getRequiredStrongAuthTimeout", "(Landroid/content/ComponentName;)J", "GetGetRequiredStrongAuthTimeout_Landroid_content_ComponentName_Handler", ApiSince=26)>]
abstract member GetRequiredStrongAuthTimeout : Android.Content.ComponentName -> int64
override this.GetRequiredStrongAuthTimeout : Android.Content.ComponentName -> int64
参数
- admin
- ComponentName
要检查或 null 聚合所有参与管理员的管理组件的名称。
返回
如果未为提供的管理员配置超时,则为毫秒或 0。
- 属性
注解
确定用户能够使用辅助身份验证和非强身份验证进行身份验证的时间,因为上次使用了强方法身份验证(密码、固定或模式)。 返回的超时后,用户需要使用强身份验证方法。
可以在返回#getParentProfileInstance(ComponentName)的DevicePolicyManager实例上调用此方法,以便检索父配置文件的限制。
在不支持 PackageManager#FEATURE_SECURE_LOCK_SCREEN 功能的设备上,返回 0 以指示未配置超时。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。