DevicePolicyManager.GetDelegatePackages(ComponentName, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.