DevicePolicyIdentifiers
class DevicePolicyIdentifiers
kotlin.Any | |
↳ | android.app.admin.DevicePolicyIdentifiers |
Class containing identifiers for policy APIs in DevicePolicyManager
, for example they will be passed in PolicyUpdateReceiver#onPolicySetResult
and PolicyUpdateReceiver#onPolicyChanged
to communicate updates of a certain policy back to the admin.
Summary
Public methods | |
---|---|
static String |
getIdentifierForUserRestriction(restriction: String) Returns a string identifier for the provided user restrictions, see |
Constants
ACCOUNT_MANAGEMENT_DISABLED_POLICY
static val ACCOUNT_MANAGEMENT_DISABLED_POLICY: String
String identifier for DevicePolicyManager#setAccountManagementDisabled
.
Value: "accountManagementDisabled"
APPLICATION_HIDDEN_POLICY
static val APPLICATION_HIDDEN_POLICY: String
String identifier for DevicePolicyManager#setApplicationHidden
.
Value: "applicationHidden"
APPLICATION_RESTRICTIONS_POLICY
static val APPLICATION_RESTRICTIONS_POLICY: String
String identifier for DevicePolicyManager#setApplicationRestrictions
.
Value: "applicationRestrictions"
AUTO_TIMEZONE_POLICY
static val AUTO_TIMEZONE_POLICY: String
String identifier for DevicePolicyManager#setAutoTimeZoneEnabled
.
Value: "autoTimezone"
AUTO_TIME_POLICY
static val AUTO_TIME_POLICY: String
String identifier for DevicePolicyManager#setAutoTimeEnabled
.
Value: "autoTime"
BACKUP_SERVICE_POLICY
static val BACKUP_SERVICE_POLICY: String
String identifier for DevicePolicyManager#setBackupServiceEnabled
.
Value: "backupService"
CAMERA_DISABLED_POLICY
static val CAMERA_DISABLED_POLICY: String
String identifier for DevicePolicyManager#setCameraDisabled
.
Value: "cameraDisabled"
CONTENT_PROTECTION_POLICY
static val CONTENT_PROTECTION_POLICY: String
String identifier for DevicePolicyManager#setContentProtectionPolicy
.
Value: "contentProtection"
KEYGUARD_DISABLED_FEATURES_POLICY
static val KEYGUARD_DISABLED_FEATURES_POLICY: String
String identifier for DevicePolicyManager#setKeyguardDisabledFeatures
.
Value: "keyguardDisabledFeatures"
LOCK_TASK_POLICY
static val LOCK_TASK_POLICY: String
String identifier for DevicePolicyManager#setLockTaskPackages
.
Value: "lockTask"
PACKAGES_SUSPENDED_POLICY
static val PACKAGES_SUSPENDED_POLICY: String
String identifier for DevicePolicyManager#setPackagesSuspended
.
Value: "packagesSuspended"
PACKAGE_UNINSTALL_BLOCKED_POLICY
static val PACKAGE_UNINSTALL_BLOCKED_POLICY: String
String identifier for DevicePolicyManager#setUninstallBlocked
.
Value: "packageUninstallBlocked"
PASSWORD_COMPLEXITY_POLICY
static val PASSWORD_COMPLEXITY_POLICY: String
String identifier for DevicePolicyManager#setRequiredPasswordComplexity
.
Value: "passwordComplexity"
PERMISSION_GRANT_POLICY
static val PERMISSION_GRANT_POLICY: String
String identifier for DevicePolicyManager#setPermissionGrantState
.
Value: "permissionGrant"
PERSISTENT_PREFERRED_ACTIVITY_POLICY
static val PERSISTENT_PREFERRED_ACTIVITY_POLICY: String
String identifier for DevicePolicyManager#addPersistentPreferredActivity
.
Value: "persistentPreferredActivity"
RESET_PASSWORD_TOKEN_POLICY
static val RESET_PASSWORD_TOKEN_POLICY: String
String identifier for DevicePolicyManager#setResetPasswordToken
.
Value: "resetPasswordToken"
SECURITY_LOGGING_POLICY
static val SECURITY_LOGGING_POLICY: String
String identifier for DevicePolicyManager#setSecurityLoggingEnabled
.
Value: "securityLogging"
STATUS_BAR_DISABLED_POLICY
static val STATUS_BAR_DISABLED_POLICY: String
String identifier for DevicePolicyManager#setStatusBarDisabled
.
Value: "statusBarDisabled"
USB_DATA_SIGNALING_POLICY
static val USB_DATA_SIGNALING_POLICY: String
String identifier for DevicePolicyManager#setUsbDataSignalingEnabled
.
Value: "usbDataSignaling"
USER_CONTROL_DISABLED_PACKAGES_POLICY
static val USER_CONTROL_DISABLED_PACKAGES_POLICY: String
String identifier for DevicePolicyManager#setUserControlDisabledPackages
.
Value: "userControlDisabledPackages"
Public methods
getIdentifierForUserRestriction
static fun getIdentifierForUserRestriction(restriction: String): String
Returns a string identifier for the provided user restrictions, see DevicePolicyManager#addUserRestriction
and UserManager
for the list of available restrictions.
Return | |
---|---|
String |
This value cannot be null . |