arch-android

//Android/br.com.arch.toolkit.android.storage.delegate/keyValueStorage

keyValueStorage

[android]
inline fun <T : Any> keyValueStorage(name: String): OptionalStorageDelegate<T>

Creates an OptionalStorageDelegate for the specified type and name.

Parameters

android

   
T The type of data to store.
name The key name.

[android]
inline fun <T : Any> keyValueStorage(noinline name: () -> String): OptionalStorageDelegate<T>

Creates an OptionalStorageDelegate for the specified type and name provider.

Parameters

android

   
T The type of data to store.
name A lambda providing the key name.

[android]
fun <T : Any> keyValueStorage(classToParse: KClass<out T>, name: String): OptionalStorageDelegate<T>

Creates an OptionalStorageDelegate for the specified KClass and name.

Parameters

android

   
classToParse The class of the data to store.
name The key name.

[android]
fun <T : Any> keyValueStorage(classToParse: KClass<out T>, name: () -> String): OptionalStorageDelegate<T>

Creates an OptionalStorageDelegate for the specified KClass and name provider.

Parameters

android

   
classToParse The class of the data to store.
name A lambda providing the key name.