DevicePolicyManager.GetPermissionPolicy(ComponentName) 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.
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
.
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.