@JvmOverloads fun getBoolean(key: String, def: Boolean = false): Boolean
get Boolean value from SharedPreference
key - key of preference
key
def - optional, if key is not presented or some unexpected problem happened, it will be return
def
Return Boolean object