Zach Klippenstein (he/him) [MOD]
07/23/2020, 8:24 PMCompositionLifecycleObserver
that enters a composition by being captured by a composable lambda get its callbacks invoked? E.g.
class MyActivity : AppCompatActivity() {
private val myObserver: CompositionLifecycleObserver = object : …
override fun onCreate() {
setContent { MyApp(myObserver) }
}
AFAIK the only way an observer can be “registered” is by being returned from remember {}
.Leland Richardson [G]
07/23/2020, 9:11 PMAdam Powell
07/23/2020, 9:29 PM