RichUtils / pyxis.uzuki.live.richutilskt.utils / RPreference / getCharSequence

getCharSequence

@JvmOverloads fun getCharSequence(key: String, def: CharSequence = ""): CharSequence

get CharSequence value from SharedPreference

Parameters

key - key of preference

def - optional, if key is not presented or some unexpected problem happened, it will be return

Return
CharSequence object