Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
DataStore Component used: androidx:datastore:datastore DataStore Version used: 1.0.0-alpha04
I'm trying to implement the new typed DataStore API in Java and I'm having some issues. All the documentation seems to be in Kotlin only and trying to create a new data store is not as straight forward from the Java side it seems.
Calling DataStoreFactoryKt.createDataStore() from Java requires me to provide all the arguments including the ones with default values in the Kotlin implementation. There doesnt seem to be any @JvmOverloads annotation for that function, resulting in my predicament.
What's the better way around this, if there is any? Or is the Data Store api simple designed to be used with Kotlin only?
I have no idea how I would go about providing a
CoroutineScope
argument from Java.It would be nice if the documentation included Java examples, unless the
DataStore
API is purposely designed to be used with Kotlin only.