get Preference

protected abstract fun getPreference(key: String): String

Method to get a stored preference

Return

the preference stored as String

Parameters

key

: the key of the preference to get