Språk

DevicePolicyManagerScope Enum

Definition

Identifies the scope of a policy: the current user, the entire device, or the parent user of the current user.

public enum DevicePolicyManagerScope
type DevicePolicyManagerScope = 
Inheritance
DevicePolicyManagerScope

Fields

Name Value Description
User 1

Flag used by setPolicy(PolicyIdentifier, int, T) to apply the policy to the same user as the current user.

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

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.

Device 2

Flag used by setPolicy(PolicyIdentifier, int, T) to apply the policy to the entire device.

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

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.

ParentUser 3

Flag used by setPolicy(PolicyIdentifier, int, T) to apply the policy to the parent user of the current user.

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

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

GetPolicy(PolicyIdentifier, DevicePolicyManagerScope) and SetPolicy(PolicyIdentifier, DevicePolicyManagerScope, Object) use these values to select the scope of the policy.

Applies to