get String

fun getString(key: String, default: String): String

Method to get string from preference

Return

string value of desired preference

Parameters

key

preference's name

default

preference's default value when the value is null

Sources

Link copied to clipboard