set

suspend fun <T> set(context: Context, key: Preferences.Key<T>, value: T)

Updates the value at key with value.

Author

Arnau Mora

Since

20220829

Parameters

context

The context that is requesting the data.

key

The preferences key to update.

value

The value to set at key.