Storage

Functions

Link copied to clipboard
abstract fun clear(): Boolean

Clear out all values from storage.

Link copied to clipboard
abstract fun getBoolean(key: String, defaultValue: Boolean): Boolean

Retrieve a Boolean from app storage by a key.

Link copied to clipboard
abstract fun getFloat(key: String, defaultValue: Float): Float

Retrieve a Float from app storage by a key.

Link copied to clipboard
abstract fun getInt(key: String, defaultValue: Int): Int

Retrieve an Int from app storage by a key.

Link copied to clipboard
abstract fun getLong(key: String, defaultValue: Long): Long

Retrieve a Long from app storage by a key.

Link copied to clipboard
abstract fun getString(key: String, defaultValue: String): String

Retrieve a String from app storage by a key.

Link copied to clipboard
abstract fun remove(key: String): Boolean

Clears out a single value from storage.

Link copied to clipboard
abstract fun storeValue(key: String, value: Boolean): Boolean

Store a Boolean in app storage by a key.

abstract fun storeValue(key: String, value: Float): Boolean

Store a Float in app storage by a key.

abstract fun storeValue(key: String, value: Int): Boolean

Store an Int in app storage by a key.

abstract fun storeValue(key: String, value: Long): Boolean

Store a Long in app storage by a key.

abstract fun storeValue(key: String, value: String): Boolean

Store a String in app storage by a key.