Skip to content

Instantly share code, notes, and snippets.

@grishko188
Last active January 25, 2023 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grishko188/7996f0897478a8e3cba3a5e67fb6a7ca to your computer and use it in GitHub Desktop.
Save grishko188/7996f0897478a8e3cba3a5e67fb6a7ca to your computer and use it in GitHub Desktop.
Navigation graph
@Composable
fun Navigation(appState: PoiAppState, paddingValues: PaddingValues) {
NavHost(appState.navController, startDestination = Screen.Home.route, Modifier.padding(paddingValues)) {
...
composable(
route = "share_target_route"
deepLinks = listOf(
navDeepLink {
action = Intent.ACTION_SEND
mimeType = "text/*"
},
navDeepLink {
action = Intent.ACTION_SEND
mimeType = "image/*"
}
)
) {
ShareTargetScreen()
}
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment