DevicePolicyManager.GetDelegatePackages(ComponentName, String) Method

Definition

Called by a profile owner or device owner to retrieve a list of delegate packages that were granted a delegation scope.

[Android.Runtime.Register("getDelegatePackages", "(Landroid/content/ComponentName;Ljava/lang/String;)Ljava/util/List;", "GetGetDelegatePackages_Landroid_content_ComponentName_Ljava_lang_String_Handler", ApiSince=26)]
public virtual System.Collections.Generic.IList<string>? GetDelegatePackages (Android.Content.ComponentName admin, string delegationScope);
[<Android.Runtime.Register("getDelegatePackages", "(Landroid/content/ComponentName;Ljava/lang/String;)Ljava/util/List;", "GetGetDelegatePackages_Landroid_content_ComponentName_Ljava_lang_String_Handler", ApiSince=26)>]
abstract member GetDelegatePackages : Android.Content.ComponentName * string -> System.Collections.Generic.IList<string>
override this.GetDelegatePackages : Android.Content.ComponentName * string -> System.Collections.Generic.IList<string>

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with.

delegationScope
String

The scope whose delegates should be retrieved.

Returns

A list of package names of the current delegated packages for delegationScope.

Attributes

Remarks

Called by a profile owner or device owner to retrieve a list of delegate packages that were granted a delegation scope.

Java documentation for android.app.admin.DevicePolicyManager.getDelegatePackages(android.content.ComponentName, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to