DevicePolicyManager.GetContentProtectionPolicy(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 content protection policy.
[Android.Runtime.Register("getContentProtectionPolicy", "(Landroid/content/ComponentName;)I", "GetGetContentProtectionPolicy_Landroid_content_ComponentName_Handler", ApiSince=35)]
[Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_CONTENT_PROTECTION")]
public virtual Android.App.Admin.ContentProtectionPolicy GetContentProtectionPolicy (Android.Content.ComponentName? admin);
[<Android.Runtime.Register("getContentProtectionPolicy", "(Landroid/content/ComponentName;)I", "GetGetContentProtectionPolicy_Landroid_content_ComponentName_Handler", ApiSince=35)>]
[<Android.Runtime.RequiresPermission("android.permission.MANAGE_DEVICE_POLICY_CONTENT_PROTECTION")>]
abstract member GetContentProtectionPolicy : Android.Content.ComponentName -> Android.App.Admin.ContentProtectionPolicy
override this.GetContentProtectionPolicy : Android.Content.ComponentName -> Android.App.Admin.ContentProtectionPolicy
Parameters
- admin
- ComponentName
Which DeviceAdminReceiver
this request is associated with. Null if the
caller is not a device admin.
Returns
- Attributes
Remarks
Returns the current content protection policy.
The returned policy will be the current resolved policy rather than the policy set by the calling admin.
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.