DevicePolicyManager.GetTrustAgentConfiguration 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
根據所有裝置管理員的所有通話 #setTrustAgentConfiguration(ComponentName, ComponentName, PersistableBundle) 彙整,取得該信任代理的設定。
[Android.Runtime.Register("getTrustAgentConfiguration", "(Landroid/content/ComponentName;Landroid/content/ComponentName;)Ljava/util/List;", "GetGetTrustAgentConfiguration_Landroid_content_ComponentName_Landroid_content_ComponentName_Handler", ApiSince=23)]
public virtual System.Collections.Generic.IList<Android.OS.PersistableBundle>? GetTrustAgentConfiguration(Android.Content.ComponentName? admin, Android.Content.ComponentName agent);
[<Android.Runtime.Register("getTrustAgentConfiguration", "(Landroid/content/ComponentName;Landroid/content/ComponentName;)Ljava/util/List;", "GetGetTrustAgentConfiguration_Landroid_content_ComponentName_Landroid_content_ComponentName_Handler", ApiSince=23)>]
abstract member GetTrustAgentConfiguration : Android.Content.ComponentName * Android.Content.ComponentName -> System.Collections.Generic.IList<Android.OS.PersistableBundle>
override this.GetTrustAgentConfiguration : Android.Content.ComponentName * Android.Content.ComponentName -> System.Collections.Generic.IList<Android.OS.PersistableBundle>
參數
- admin
- ComponentName
這個請求就是和這個 DeviceAdminReceiver 問題有關的。 若為空,此函式會回傳所有宣告 #KEYGUARD_DISABLE_TRUST_AGENTS的管理員的配置清單。 如果有管理員申報 #KEYGUARD_DISABLE_TRUST_AGENTS 但沒打電話
#setTrustAgentConfiguration(ComponentName, ComponentName, PersistableBundle) 當 agent OR 呼叫時,會回傳 null 配置。
- agent
- ComponentName
要啟用哪些元件的功能。
傳回
為給定的信任代理人設定。
- 屬性
備註
根據所有裝置管理員的所有通話 #setTrustAgentConfiguration(ComponentName, ComponentName, PersistableBundle) 彙整,取得該信任代理的設定。
此方法可在回傳DevicePolicyManager的實例中呼叫#getParentProfileInstance(ComponentName),以取得父設定檔的設定集。
在不支援 PackageManager#FEATURE_SECURE_LOCK_SCREEN 此功能的裝置上,空值總是回傳。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。