getLong

open fun getLong(@NonNull key: String, defValue: Long): Long(source)

Retrieves a Long value from the data store.

Return

The value from the data store or the default return value

Parameters

key

The name of the preference to retrieve

defValue

Value to return if this preference does not exist in the storage

See also