Skip to content

Does this support Proto Datastore? #105

Answered by russhwolf
kaushalyap asked this question in Q&A
Discussion options

You must be logged in to vote

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 = "")

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kaushalyap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants