RichUtils / pyxis.uzuki.live.richutilskt.utils / RPreference / getBoolean

getBoolean

@JvmOverloads fun getBoolean(key: String, def: Boolean = false): Boolean

get Boolean value from SharedPreference

Parameters

key - key of preference

def - optional, if key is not presented or some unexpected problem happened, it will be return

Return
Boolean object