decode

fun <T> decode(deserializer: DeserializationStrategy<T>, tag: String): T

Decodes and deserializes from the SharedPreferences at the specified tag to the value of type T using the given deserializer

Parameters

deserializer

strategy used to decode the data

tag

key to decode data from