getLong

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

Function to get Long value from preference

Return

Long from given key if exist, defaultValue if not

Parameters

key

String key to refer

defaultValue

Long to return if the key doesn't return any value