set

inline operator fun Settings.set(key: String, value: Int)

Equivalent to Settings.putInt


inline operator fun Settings.set(key: String, value: Long)

Equivalent to Settings.putLong


inline operator fun Settings.set(key: String, value: String)

Equivalent to Settings.putString


inline operator fun Settings.set(key: String, value: Float)

Equivalent to Settings.putFloat


inline operator fun Settings.set(key: String, value: Double)

Equivalent to Settings.putDouble


inline operator fun Settings.set(key: String, value: Boolean)

Equivalent to Settings.putBoolean


inline operator fun <T : Any> Settings.set(key: String, value: T?)

Stores a typed value at key, or remove what's there if value is null. Throws IllegalArgumentException if T is not one of Int, Long, String, Float, Double, or Boolean.


inline operator fun Settings.set(key: String, value: Nothing?)

Equivalent to Settings.remove