Does this support Proto Datastore? #105
Answered
by
russhwolf
kaushalyap
asked this question in
Q&A
-
https://developer.android.com/topic/libraries/architecture/datastore#datastore-typed comes with type safety |
Beta Was this translation helpful? Give feedback.
Answered by
russhwolf
Jan 27, 2022
Replies: 1 comment
-
No. You can use preference datastore, but in order to keep consistent with other platform APIs the common API is based on string keys. The library does provide delegates which can be helpful for type-safety val settings: Settings = //...
val someData: String by settings.string("key", defaultValue = "") |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kaushalyap
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No. You can use preference datastore, but in order to keep consistent with other platform APIs the common API is based on string keys.
The library does provide delegates which can be helpful for type-safety