get Boolean

fun getBoolean(key: String, default: Boolean): Boolean

Method to get boolean from preference

Return

boolean value of desired preference

Parameters

key

preference's name

default

preference's value when the value is null

Sources

Link copied to clipboard