ValuePolicy

What the Preferences tab shows of the values in a file. The keys, types, and sizes always show. The masked keys of PrefsFile and PrefsDataStore are left out under every policy.

Entries

Link copied to clipboard

Every value.

Link copied to clipboard

Every value, except the value of a key that looks like it holds a secret, such as auth_token, apiKey, or password. The check is SensitiveKeys.isSensitive, the same as the Network tab's redaction. It goes by the key, and never leaves out a boolean, a float, or a double, which an app does not use for a secret, so a switch whose key is named show_original_time_ago_key shows its value. The app can show the values of some of these keys with the unmasked keys of PrefsFile and PrefsDataStore: a name there matches a key with exactly that name, in any case.

Link copied to clipboard

No value: for a file that holds secrets under any key, such as a decrypting EncryptedSharedPreferences.

Companion properties

Link copied to clipboard

Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.

Companion functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
Link copied to clipboard