Slide 31
Slide 31 text
Compose Destinations
public data object HogeRouteDestination : BaseRoute(), TypedDestinationSpec {
public operator fun invoke(
arg: String,
): Direction {
return Direction(
route = "$baseRoute" +
"/${stringNavType.serializeValue("arg", arg)}"
)
}
@Composable
override fun DestinationScope.Content() {
val dependencyContainer = buildDependencies()
val (arg) = navArgs
HogeRoute(
arg = arg,
…
)
}
}