다음을 통해 공유


DevicePolicyManager.GetContentProtectionPolicy(ComponentName) Method

Definition

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.

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