Join Slack
Powered by
I’m building on top of the KMM template project. I...
# multiplatform
r
Rak
06/21/2021, 5:02 PM
I’m building on top of the KMM template project. I need to save some data in Shared Preferences. How does my actual method access the Context object in the Platform class?
t
Tiago Nunes
06/21/2021, 5:28 PM
They solved this problem in the multiplatform-settings library
https://github.com/russhwolf/multiplatform-settings/tree/master/multiplatform-settings/src
Tiago Nunes
06/21/2021, 5:29 PM
Take a look at Settings.Factory
Tiago Nunes
06/21/2021, 5:35 PM
Then you have a sample using this
https://github.com/russhwolf/multiplatform-settings/tree/master/sample
2
Views
Open in Slack
Previous
Next