DevicePolicyManager.GetDelegatedScopes(ComponentName, String) Method

Definition

Called by a profile owner or device owner to retrieve a list of the scopes given to a delegate package.

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

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with, or null if the caller is delegatedPackage.

delegatedPackage
String

The package name of the app whose scopes should be retrieved.

Returns

A list containing the scopes given to delegatedPackage.

Attributes

Remarks

Called by a profile owner or device owner to retrieve a list of the scopes given to a delegate package. Other apps can use this method to retrieve their own delegated scopes by passing null for admin and their own package name as delegatedPackage.

Java documentation for android.app.admin.DevicePolicyManager.getDelegatedScopes(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