get Long

fun getLong(key: String, default: Long): Long

Method to get long from preference

Return

long value of desired preference

Parameters

key

preference's name

default

preference's value when the value is null

Sources

Link copied to clipboard