Created
December 29, 2022 10:54
-
-
Save srikrishnasakunia/865afa46dc42101d9b62faf99301519a to your computer and use it in GitHub Desktop.
This file consists of variables that will store the values.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.datastoretest.data.local | |
import androidx.datastore.preferences.core.booleanPreferencesKey | |
import androidx.datastore.preferences.core.intPreferencesKey | |
import androidx.datastore.preferences.core.longPreferencesKey | |
import androidx.datastore.preferences.core.stringPreferencesKey | |
object PreferenceDataStoreConstants { | |
val IS_MINOR_KEY = booleanPreferencesKey("IS_MINOR_KEY") | |
val AGE_KEY = intPreferencesKey("AGE_KEY") | |
val NAME_KEY = stringPreferencesKey("NAME_KEY") | |
val MOBILE_NUMBER = longPreferencesKey("MOBILE_NUMBER") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment