:wave: I'm working on migrating some stuff from ol...
# compose-destinations
a
👋 I'm working on migrating some stuff from old startForResult into compose destinations. If what I need a result back from is a system settings panel, is this Multi module result back case the best way forward?
Old school way is to start it this way:
networkSettingsListener.launch(Intent(Settings.Panel.ACTION_WIFI))
and then do whatever is needed in the callback on that
networkSettingsListener
r
Hi 👋 Result back is meant for cases where both screens are yours, from your app. For getting results of a system setting, I would use official solutions.
Of course you could have your own screen that for example, explains the user what you're about to ask of him and how he can enable that setting once you navigate him to system settings. Then that screen could use the intent launcher official APIs, get the result of that, then pass that result back to whatever screen started the whole thing using Compose Destinations result back feature.