Skip to content

Instantly share code, notes, and snippets.

@putrarifin
Created December 5, 2020 05:19
Show Gist options
  • Save putrarifin/942bbaa65230ed31211d4a126fb00aa4 to your computer and use it in GitHub Desktop.
Save putrarifin/942bbaa65230ed31211d4a126fb00aa4 to your computer and use it in GitHub Desktop.
class SettingsManager(context: Context) {
private val dataStore = context.createDataStore(name = "settings_pref")
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment