語言

DevicePolicyManager.GetRequiredStrongAuthTimeout(ComponentName) 方法

定義

判斷使用者能使用次級非強驗證驗證的時間,因為最後一次強驗證方式(密碼、PIN 碼或模式)已被使用。

[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 則為提供管理員。

屬性

備註

判斷使用者能使用次級非強驗證驗證的時間,因為最後一次強驗證方式(密碼、PIN 碼或模式)已被使用。 逾時後,使用者必須使用強認證方法。

此方法可在回傳#getParentProfileInstance(ComponentName)的實例上呼叫DevicePolicyManager,以取得父配置檔的限制。

對於不支援 PackageManager#FEATURE_SECURE_LOCK_SCREEN 此功能的裝置,會回傳 0 表示未設定逾時。

Java 文件 android.app.admin.DevicePolicyManager.getRequiredStrongAuthTimeout(android.content.ComponentName)

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

適用於