Język

ContentProtectionPolicy Enum

Definition

Identifies whether device policy controls content protection and, if it does, whether content protection is enabled or disabled.

public enum ContentProtectionPolicy
type ContentProtectionPolicy = 
Inheritance
ContentProtectionPolicy

Fields

Name Value Description
NotControlledByPolicy 0

Indicates that content protection is not controlled by policy, allowing user to choose.

Android reference for android.app.admin.DevicePolicyManager.CONTENT_PROTECTION_NOT_CONTROLLED_BY_POLICY.

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.

Disabled 1

Indicates that content protection is controlled and disabled by a policy (default).

Android reference for android.app.admin.DevicePolicyManager.CONTENT_PROTECTION_DISABLED.

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.

Enabled 2

Indicates that content protection is controlled and enabled by a policy.

Android reference for android.app.admin.DevicePolicyManager.CONTENT_PROTECTION_ENABLED.

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.

Remarks

GetContentProtectionPolicy(ComponentName) returns one of these values, and SetContentProtectionPolicy(ComponentName, ContentProtectionPolicy) accepts one of them. When the policy does not control content protection, the user can choose.

Applies to