語言

DevicePolicyManager.GetKeyguardDisabledFeatures(ComponentName) 方法

定義

確認 Keyguard 的功能是否被呼叫管理員(如指定)或所有對該使用者及其參與設定的限制管理員所停用。

[Android.Runtime.Register("getKeyguardDisabledFeatures", "(Landroid/content/ComponentName;)I", "GetGetKeyguardDisabledFeatures_Landroid_content_ComponentName_Handler")]
public virtual Android.App.Admin.KeyguardDisable GetKeyguardDisabledFeatures(Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getKeyguardDisabledFeatures", "(Landroid/content/ComponentName;)I", "GetGetKeyguardDisabledFeatures_Landroid_content_ComponentName_Handler")>]
abstract member GetKeyguardDisabledFeatures : Android.Content.ComponentName -> Android.App.Admin.KeyguardDisable
override this.GetKeyguardDisabledFeatures : Android.Content.ComponentName -> Android.App.Admin.KeyguardDisable

參數

admin
ComponentName

要檢查管理員元件的名稱,或 null 是檢查是否有管理員在 Keyguard 中停用了功能。

傳回

旗幟的比特場。 請參考 #setKeyguardDisabledFeatures(ComponentName, int) 相關清單。

屬性

備註

確認 Keyguard 的功能是否被呼叫管理員(如指定)或所有對該使用者及其參與設定的限制管理員所停用。 對於有獨立挑戰的個人檔案限制則不予考慮。

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

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

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

適用於