get Object

fun <T> getObject(key: String, type: Class<T>): T?

Method to get object from preference

Return

object value of desired preference

Parameters

key

preference's name

Sources

Link copied to clipboard