DeviceSettings

public abstract class DeviceSettings


裝置上安全性相關裝置設定的資訊。

摘要

巢狀類型

public abstract class DeviceSettings.Builder

DeviceSettings 的建構工具。

裝置的加密狀態。

裝置是否已啟用 Google Play 安全防護驗證。

用於保護裝置或設定檔的螢幕鎖定複雜度。

公用方法

static DeviceSettings.Builder
static DeviceSettings
abstract DeviceSettings.EncryptionStatus

加密狀態。

Metadata

加密狀態的中繼資料。

abstract DeviceSettings.GooglePlayProtectVerifyAppsState

裝置是否已啟用 Google Play 安全防護驗證。

Metadata

關於 Google Play 安全防護驗證應用程式狀態的中繼資料。

abstract DeviceSettings.ScreenLockComplexity

用於保護裝置或設定檔的螢幕鎖定複雜度。

Metadata

螢幕鎖定複雜度的中繼資料。

boolean

如果已設定 encryptionStatusMetadata,則會傳回 true

boolean

如果已設定 googlePlayProtectVerifyAppsStateMetadata,則會傳回 true

boolean

如果已設定 screenLockComplexityMetadata,就會傳回 true

abstract DeviceSettings.Builder

公用方法

builder

public static DeviceSettings.Builder builder()

getDefaultInstance

public static DeviceSettings getDefaultInstance()

getEncryptionStatus

public abstract DeviceSettings.EncryptionStatus getEncryptionStatus()

加密狀態。

getEncryptionStatusMetadata

public Metadata getEncryptionStatusMetadata()

加密狀態的中繼資料。

getGooglePlayProtectVerifyAppsState

public abstract DeviceSettings.GooglePlayProtectVerifyAppsState getGooglePlayProtectVerifyAppsState()

裝置是否已啟用 Google Play 安全防護驗證。

getGooglePlayProtectVerifyAppsStateMetadata

public Metadata getGooglePlayProtectVerifyAppsStateMetadata()

關於 Google Play 安全防護驗證應用程式狀態的中繼資料。

getScreenLockComplexity

public abstract DeviceSettings.ScreenLockComplexity getScreenLockComplexity()

用於保護裝置或設定檔的螢幕鎖定功能複雜度。這項操作需要呼叫端具備 REQUEST_PASSWORD_COMPLEXITY 權限。

getScreenLockComplexityMetadata

public Metadata getScreenLockComplexityMetadata()

螢幕鎖定複雜度的中繼資料。

hasEncryptionStatusMetadata

public boolean hasEncryptionStatusMetadata()

如果已設定 encryptionStatusMetadata,則會傳回 true

hasGooglePlayProtectVerifyAppsStateMetadata

public boolean hasGooglePlayProtectVerifyAppsStateMetadata()

如果已設定 googlePlayProtectVerifyAppsStateMetadata,則會傳回 true

hasScreenLockComplexityMetadata

public boolean hasScreenLockComplexityMetadata()

如果已設定 screenLockComplexityMetadata,就會傳回 true

toBuilder

public abstract DeviceSettings.Builder toBuilder()