readGlobalInt

fun readGlobalInt(context: Context, key: String, default: Int = -1): Int?

Reads an integer from Settings.Global, or null on failure.

Parameters

key

Global setting key.

default

Value used when the key is absent.