Skip to content

Instantly share code, notes, and snippets.

@landomen
Last active December 22, 2024 09:38
private const val DEEPLINK_BASE = "https://deeplink.sample.com"
composable(
route = "result/{lastName}/{firstName}?age={age}",
deepLinks = listOf(
navDeepLink { uriPattern = "https://deeplink.sample.com/result/{lastName}/{firstName}?age={age}" },
),
arguments = listOf(
navArgument("firstName"){
type = NavType.StringType
},
navArgument("lastName"){
type = NavType.StringType
},
navArgument("age"){
type = NavType.IntType
}
)
) {
ResultScreen(
firstName = it.arguments?.getString("firstName"),
lastName = it.arguments?.getString("lastName"),
age = it.arguments?.getInt("age"),
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment