StorageDomain.Preference


class StorageDomain.Preference : StorageDomain


Targets on-device SharedPreferences XML files.

Summary

Public constructors

Preference(prefName: String, key: String, value: Any?)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

String

The specific preference key to seed or verify.

String

The name of the SharedPreferences XML file (excluding the .xml extension).

Any?

The value associated with the preference key, or null if asserting missing state.

Public constructors

Preference

Added in 1.0.0-alpha01
Preference(prefName: String, key: String, value: Any? = null)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

key

Added in 1.0.0-alpha01
val key: String

The specific preference key to seed or verify.

prefName

Added in 1.0.0-alpha01
val prefName: String

The name of the SharedPreferences XML file (excluding the .xml extension).

value

Added in 1.0.0-alpha01
val value: Any?

The value associated with the preference key, or null if asserting missing state. Supported types are: String, Int, Long, Float, Boolean, or null.