DeviceSettings

public abstract class DeviceSettings


Information about security related device settings on device.

Summary

Nested types

public abstract class DeviceSettings.Builder

Builder for DeviceSettings.

Encryption status of a device.

Whether Google Play Protect verification is enabled on the device.

Complexity of the screen lock used to protect the device or the profile.

Public methods

static DeviceSettings.Builder
static DeviceSettings
abstract DeviceSettings.EncryptionStatus

Encryption status.

Metadata

Metadata about encryption status.

abstract DeviceSettings.GooglePlayProtectVerifyAppsState

Whether Google Play Protect verification is enabled on the device.

Metadata

Metadata about google play protect verify apps state.

abstract DeviceSettings.ScreenLockComplexity

Complexity of the screen lock used to protect the device or the profile.

Metadata

Metadata about screen lock complexity.

boolean

Returns true if encryptionStatusMetadata is set.

boolean

Returns true if googlePlayProtectVerifyAppsStateMetadata is set.

boolean

Returns true if screenLockComplexityMetadata is set.

abstract DeviceSettings.Builder

Public methods

builder

public static DeviceSettings.Builder builder()

getDefaultInstance

public static DeviceSettings getDefaultInstance()

getEncryptionStatus

public abstract DeviceSettings.EncryptionStatus getEncryptionStatus()

Encryption status.

getEncryptionStatusMetadata

public Metadata getEncryptionStatusMetadata()

Metadata about encryption status.

getGooglePlayProtectVerifyAppsState

public abstract DeviceSettings.GooglePlayProtectVerifyAppsState getGooglePlayProtectVerifyAppsState()

Whether Google Play Protect verification is enabled on the device.

getGooglePlayProtectVerifyAppsStateMetadata

public Metadata getGooglePlayProtectVerifyAppsStateMetadata()

Metadata about google play protect verify apps state.

getScreenLockComplexity

public abstract DeviceSettings.ScreenLockComplexity getScreenLockComplexity()

Complexity of the screen lock used to protect the device or the profile. This requires the caller to have the REQUEST_PASSWORD_COMPLEXITY permission.

getScreenLockComplexityMetadata

public Metadata getScreenLockComplexityMetadata()

Metadata about screen lock complexity.

hasEncryptionStatusMetadata

public boolean hasEncryptionStatusMetadata()

Returns true if encryptionStatusMetadata is set.

hasGooglePlayProtectVerifyAppsStateMetadata

public boolean hasGooglePlayProtectVerifyAppsStateMetadata()

Returns true if googlePlayProtectVerifyAppsStateMetadata is set.

hasScreenLockComplexityMetadata

public boolean hasScreenLockComplexityMetadata()

Returns true if screenLockComplexityMetadata is set.

toBuilder

public abstract DeviceSettings.Builder toBuilder()