By using the search function I can't find anything about
Shared Preferences
. Just the hint, that it's not the right data storage solution. I would like to save some settings. What's the right way to store such data persistently?
s
Se7eN
03/12/2021, 11:27 PM
What kind of settings?
l
Lilly
03/12/2021, 11:29 PM
boolean, int (mainly flags) at least for now
s
Se7eN
03/12/2021, 11:33 PM
Yep I'd use shared prefs for that kind of stuff
j
jaqxues
03/12/2021, 11:49 PM
There has lately been a shift to Jetpack Datastore
➕ 2
👍 4
l
Lilly
03/13/2021, 12:02 AM
Are there any neat compose functions around that?
i
Ian Lake
03/13/2021, 12:05 AM
I don't think you need any new neat compose functions to call methods on Datastore or Shared Preferences. The section in the docs on calling a suspending method in an event listener would be all you'd need for Datastore's