getLong

abstract suspend fun getLong(scope: String, key: String, defaultValue: Long = 0): Long

Retrieves a Long 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 0L.