Closed fodeguirassy closed 2 years ago
What are the errors you're getting?
Try
val flowSettings: FlowSettings = sharedSettings.toFlowSettings()
val flow: Flow<Boolean> = flowSettings.getBooleanFlow("key", false)
toFlowSettings()
seems unavailable.
Oh sorry. sharedSettings
needs to be ObservableSettings
to be able to convert to flow.
I'm also stuck trying to use the Flows API's - it looks like they are either missing or out of sync with the documentation. I am on Desktop JVM.
Can you say more about what you're trying to do? I believe the documentation is correct and up-to-date but maybe there are missing details that are causing confusion.
Do be aware that Flow
APIs are only available for ObservableSettings
instances, rather than for all Settings
. If you're using the no-arg
module you'll need to cast the instance returned by Settings()
(but be aware that this won't work on all platforms).
Hello
Thanks for this great library you're shipping to us.
I was looking for a basic usage of FlowSettings. I tried the following but getting errors.
Thanks for your help !