Hasan Nagizade
05/14/2022, 6:23 AMrusshwolf
05/14/2022, 4:35 PMSettings
interface from there. Or you could just talk to SharedPreferences
, and if you use the same SharedPreferences
instance to create your AndroidSettings
then the data in them will be the same.Hasan Nagizade
05/14/2022, 4:41 PMrusshwolf
05/14/2022, 4:45 PMval preferences: SharedPreferences
and do val settings = AndroidSettings(preferences)
, then preferences.getString("key", "default")
will be the same as settings.getString("key", "default")
Hasan Nagizade
05/14/2022, 4:45 PMrusshwolf
05/14/2022, 4:47 PMPreferenceManager.getDefaultSharedPreferences(context)
Hasan Nagizade
05/14/2022, 4:47 PM