Remember, our composable destination takes the route string and a list of arguments, each of them should be of type navArgument and with either a defaultValue or the nullability property set to true.Īnd to extract the value, we use the NavBackStackEntry as we did before: val scaryAnimationIdAsString = backStackEntry. We also remember that composable can take a list of arguments as parameters by looking at the source code of the Compose Navigation library: public fun posable( route: String, arguments: List = listOf(), deepLinks: List = listOf(), content: (NavBackStackEntry) -> Unit ) Intent intent getIntent() Bundle args intent.getBundleExtra(BUNDLE) ArrayList
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |