DevicePolicyManager.GetTrustAgentConfiguration メソッド

定義

すべてのデバイス管理者に対するすべての 呼び出しの集計に基づいて、指定された信頼エージェントの構成を #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この要求が関連付けられているもの。 null の場合、この関数は を宣言 #KEYGUARD_DISABLE_TRUST_AGENTSするすべての管理者の構成の一覧を返します。 管理者が宣言する #KEYGUARD_DISABLE_TRUST_AGENTS が、呼び出さない場合#setTrustAgentConfiguration(ComponentName, ComponentName, PersistableBundle) の場合、または null 構成でそれを呼び出す場合は、null が返されます。

agent
ComponentName

有効な機能を取得するコンポーネント。

戻り値

指定された信頼エージェントの構成。

属性

注釈

すべてのデバイス管理者に対するすべての 呼び出しの集計に基づいて、指定された信頼エージェントの構成を #setTrustAgentConfiguration(ComponentName, ComponentName, PersistableBundle) 取得します。

親プロファイルの構成セットを取得するために、 DevicePolicyManager によって #getParentProfileInstance(ComponentName) 返されるインスタンスでこのメソッドを呼び出すことができます。

機能をサポート PackageManager#FEATURE_SECURE_LOCK_SCREEN していないデバイスでは、常に null が返されます。

android.app.admin.DevicePolicyManager.getTrustAgentConfiguration(android.content.ComponentName, android.content.ComponentName)Java ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象