get Int

fun getInt(key: String, default: Int): Int

Method to get int from preference

Return

int value of desired preference

Parameters

key

preference's name

default

preference's value when the value is null

Sources

Link copied to clipboard