getBoolean

abstract suspend fun getBoolean(scope: String, key: String, defaultValue: Boolean = false): Boolean

Retrieves a Boolean value by key from the given scope.

Return

The stored value or defaultValue.

Parameters

scope

The storage scope name.

key

The key to look up.

defaultValue

The fallback value if the key is missing. Defaults to false.