SharedPrefsUtils
Deprecated
SharedPreferences is deprecated because of its performance. Please use DataStore instead.
Replace with
import com.bluewhaleyt.common.datasaving.utils.DataStoreUtils
Content copied to clipboard
This utility aims to simplify the usage of SharedPreferences.
For Kotlin, using DataStore
instead is highly recommended, please refer
DataStore.
See also
Functions
Link copied to clipboard
Clears all values from this SharedPreferences.
Link copied to clipboard
Returns true if the specified key is marked as one-time only in the SharedPreferences.
Link copied to clipboard
Returns a list of keys for all preferences stored in the app.
Link copied to clipboard
Removes the entry for the specified key from this SharedPreferences.