arch-android

//Android/br.com.arch.toolkit.android.util/set

set

[android]
operator fun <T> ERROR CLASS: Symbol not found for SharedPreferences.set(key: String, value: T)

Stores a value in SharedPreferences using operator overloading.

Supported types: String, Boolean, Int, Float, Long, Double (stored as String), and null (removes the key).

Parameters

android

   
key The name of the preference to modify.
value The new value for the preference.

Throws

   
UnsupportedOperationException If the value type is not supported.