Marcin Środa
08/30/2021, 12:56 PMViewTreeObserver.OnPreDrawListener
in Compose? Looking for a way to delay startup due to data initialization. Was looking on https://developer.android.com/about/versions/12/features/splash-screen but can’t connect it with compose.nitrog42
08/30/2021, 1:12 PMnitrog42
08/30/2021, 1:13 PMoverride fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
val isReady by viewModel.isReady
if(isReady) {
//The composable of your app
}
}
}
Marcin Środa
08/30/2021, 1:23 PMFelix Schütz
08/30/2021, 1:38 PMFelix Schütz
08/30/2021, 1:38 PMFelix Schütz
08/30/2021, 1:40 PMMarcin Środa
08/30/2021, 1:40 PMColton Idle
08/31/2021, 7:38 AM