Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide default PreferenceDataStore implementation #73

Closed
pakoito opened this issue Apr 25, 2017 · 1 comment
Closed

Provide default PreferenceDataStore implementation #73

pakoito opened this issue Apr 25, 2017 · 1 comment

Comments

@pakoito
Copy link
Contributor

pakoito commented Apr 25, 2017

In Android O, individual preferences or even the entire PreferenceManager can call setPreferenceDataStore(), allowing your app to keep the same simple key/value pair API, but provide your own mechanism for storing the underlying data.

The interface is quite simple, it shouldn't take long to write. My time is limited right now, and if yours is too we'll have to wait until either of us is freed :D

https://developer.android.com/reference/android/preference/PreferenceDataStore.html

@pilgr
Copy link
Owner

pilgr commented Sep 22, 2017

Out of scope. PreferenceDataStore provides API to save only primitive types, this is not the real usage case for Paper. Developers choose Paper because of how easy it allowed to save complex objects. So I'm closing this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants