setPersistent

open fun setPersistent(persistent: Boolean)(source)

Sets whether this preference is persistent. When persistent, it stores its value(s) into the persistent SharedPreferences storage by default or into PreferenceDataStore if assigned.

Parameters

persistent

Set true if it should store its value(s) into the storage