Created
March 22, 2023 12:20
-
-
Save merttoptas/e5b2fbdce75a9977cbf1cac854f7340a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun NavGraphBuilder.settingsScreen() { | |
composable( | |
route = settingsNavigationRoute, | |
deepLinks = listOf(navDeepLink { | |
uriPattern = "example://compose/settings/{id}" | |
action = Intent.ACTION_VIEW | |
}), | |
arguments = listOf( | |
navArgument("id") { | |
type = NavType.StringType | |
defaultValue = "" | |
} | |
) | |
) { navBackStackEntry -> | |
val argument = navBackStackEntry.arguments?.getString("id") | |
SettingsScreen(deepLinkData = argument) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment