Kevin Hester
02/13/2020, 3:05 AMwhen (screen) {
is Screen.Home -> HomeContent()
is Screen.SelectRadio -> BTScanScreen()
// Question: how to get hooks invoked when this screen gets shown/removed?
// i.e. I need to start/stop a bluetooth scan operation. depending on the
// appearance/disappearance of this screen.
}
Adam Powell
02/13/2020, 3:13 AMonCommit
or onActive
: https://developer.android.com/reference/kotlin/androidx/compose/package-summary.html#onactiveKevin Hester
02/13/2020, 3:01 PMAdam Powell
02/13/2020, 3:07 PMonStop
in the LifecycleObserver
sense, you'll need to combine those two things together. Some out of the box API will be around for this laterKevin Hester
02/13/2020, 3:33 PM