int

fun ISharedPreferencesOwner.int(defaultValue: Int = 0, commit: Boolean = false): SharedPreferencesProperty<Int>

Save or set an int value into SharedPreferences.

Since

0.5.6

Parameters

defaultValue

The defaultValue to return if this preference does not exist.