Share via


DevicePolicyManager.GetPermissionPolicy(ComponentName) Method

Definition

Returns the current runtime permission policy set by the device or profile owner.

[Android.Runtime.Register("getPermissionPolicy", "(Landroid/content/ComponentName;)I", "GetGetPermissionPolicy_Landroid_content_ComponentName_Handler", ApiSince=23)]
public virtual Android.App.Admin.PermissionPolicy GetPermissionPolicy (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getPermissionPolicy", "(Landroid/content/ComponentName;)I", "GetGetPermissionPolicy_Landroid_content_ComponentName_Handler", ApiSince=23)>]
abstract member GetPermissionPolicy : Android.Content.ComponentName -> Android.App.Admin.PermissionPolicy
override this.GetPermissionPolicy : Android.Content.ComponentName -> Android.App.Admin.PermissionPolicy

Parameters

admin
ComponentName

Which profile or device owner this request is associated with.

Returns

the current policy for future permission requests.

Attributes

Remarks

Returns the current runtime permission policy set by the device or profile owner. The default is #PERMISSION_POLICY_PROMPT.

Java documentation for android.app.admin.DevicePolicyManager.getPermissionPolicy(android.content.ComponentName).

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