getObject

fun <T> getObject(key: String, defValue: T): T

Get an Object from the preferences

Return

Value if found, else the defValue

Parameters

key

Key of the value

defValue

Default value


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

Get an Object from the preferences

Return

Value if found, else the defValue

Parameters

key

Key of the value

defValue

Default value

type

Type of the object