NsUserDefaultsKeyValueStore

Coordinates NsUserDefaultsKeyValueStore behavior in the SDAI data layer.

Author

Dmitriy Moroz

Parameters

name

name value consumed by the API.

Constructors

Link copied to clipboard
constructor(name: String)

Properties

Link copied to clipboard
private val defaults: NSUserDefaults

Exposes the defaults value used by the SDAI data layer.

Functions

Link copied to clipboard
open override fun getBoolean(key: String, default: Boolean = false): Boolean

Loads SDAI data through getBoolean.

Link copied to clipboard
open override fun getInt(key: String, default: Int = 0): Int

Loads SDAI data through getInt.

Link copied to clipboard
open override fun getString(key: String, default: String = ""): String

Loads SDAI data through getString.

Link copied to clipboard
open override fun putBoolean(key: String, value: Boolean)

Executes the putBoolean step in the SDAI data layer.

Link copied to clipboard
open override fun putInt(key: String, value: Int)

Executes the putInt step in the SDAI data layer.

Link copied to clipboard
open override fun putString(key: String, value: String)

Executes the putString step in the SDAI data layer.