Let's consider a scenario where we have an activity with two screens: ListScreen and DetailScreen. The activity is defined as follows:
class SomeActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
Navigator(
remember {
ListScreen(),
DetailScreen(someId)
},
)
}
}
override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
}
}
When a user opens a deep link, the onNewIntent method is triggered, and we want to redirect them to the DetailScreen. How can i do that, is navigator accesible in activity?
Let's consider a scenario where we have an activity with two screens: ListScreen and DetailScreen. The activity is defined as follows:
class SomeActivity : AppCompatActivity() {
}
When a user opens a deep link, the onNewIntent method is triggered, and we want to redirect them to the DetailScreen. How can i do that, is navigator accesible in activity?