Last active
January 22, 2022 22:42
-
-
Save gabrielbmoro/0baff28710f7dcafee2b0e366b5e5c69 to your computer and use it in GitHub Desktop.
Exemple - Route sending Quiz object - Navigation Compose
This file contains hidden or 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 quizRoute(quiz: Quiz): String{ | |
val json = Uri.encode(Gson().toJson(quiz)) | |
return "$QUIZ_ROUTE/$json" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment