Roman Levinzon
Oct 26, 2023

In most cases the best place would be the ViewModel, you can obtain your arguments via SavedStateHandle

In case it's more UI centric, can be both Route or Coordinator

For example, if you're passing some localized string just to show it on the screen, there's no need to involve coordinator, extract your argument inside the Route and pass it over to the Screen

Passing some ID to fetch details? Definitely ViewModel - Any business layer related argument better be handled there

The coordinator can handle some event related arguments, like Redirect URI, scroll positions

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Roman Levinzon
Roman Levinzon

Written by Roman Levinzon

A Software Engineer with passion for Mobile Technologies

Responses (1)

Write a response