safeGlobalInt

fun safeGlobalInt(context: Context, key: String, default: Int = 0): String

Safely reads an integer from Settings.Global as a string.

Return

The value as a string, or "unavailable" on failure.

Parameters

key

Global settings key.

default

Value used when the key is absent.