Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to generate Bundle without Intent or Fragment #30

Closed
cedrickcooke opened this issue Sep 27, 2020 · 0 comments · Fixed by #31
Closed

Option to generate Bundle without Intent or Fragment #30

cedrickcooke opened this issue Sep 27, 2020 · 0 comments · Fixed by #31
Assignees

Comments

@cedrickcooke
Copy link
Collaborator

cedrickcooke commented Sep 27, 2020

Use case here is easier integration into AndroidX Navigation (as an alternative to SafeArgs, since it's not supported when using the XML-free DSL).

@Exercise(Argument("foo", Int::class))
class DestinationFragment : Fragment() {
    // ...
}

class SourceFragment : Fragment() {
    fun navigateToDest() {
        findNavController().navigate(R.id.action, DestinationFragmentArgs(foo = 5))
    }
}

Not to assume the function name here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant