Key

open inner class Key<Type> : Preferences.ROKey<Type>

Read-write preference key.

Parameters

<Type>

Type stored in the read-write key.

Constructors

Link copied to clipboard
constructor(@NonNull name: String)
Constructor.

Properties

Link copied to clipboard
The key's name.

Functions

Link copied to clipboard
open fun equals(@Nullable object: Any): Boolean
Check if this key equals another.
Link copied to clipboard
Get the key's current value.
Link copied to clipboard
Get the key's default value.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Check if the key has been changed.
Link copied to clipboard
Override key's default value.
Link copied to clipboard
open fun reset()
Reset the key to default.
Link copied to clipboard
open fun set(value: Type)
Set the key's current value.
Link copied to clipboard
open fun toString(): String
Return key name.