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

Conditional start destination? #49

Closed
Buggyy opened this issue Jan 31, 2022 · 1 comment
Closed

Conditional start destination? #49

Buggyy opened this issue Jan 31, 2022 · 1 comment
Labels
question Further information is requested wontfix This will not be worked on

Comments

@Buggyy
Copy link

Buggyy commented Jan 31, 2022

How can you have a conditional starting destination based on Preferences (e.g. from a viewmodel) ?

@raamcosta raamcosta added question Further information is requested wontfix This will not be worked on labels Jan 31, 2022
@raamcosta
Copy link
Owner

raamcosta commented Jan 31, 2022

Hi @Buggyy 👋

Yes.
You can override the one chosen by the annotation "start" parameter at runtime when calling DestinationsNavHost which has a startRoute that accepts both NavGraph and Destination.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants