MainNavigationCoordinator

Android equivalent of iOS MainCoordinator Centralized navigation management following iOS pattern

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Check if we can go back

Link copied to clipboard

Get the previous destination in the stack

Link copied to clipboard
fun initialize(navController: NavHostController)
Link copied to clipboard

Check if we're at the root (main conversation screen)

Link copied to clipboard

Check if current route matches given route

Link copied to clipboard

Pop current screen (equivalent to iOS popViewController)

Link copied to clipboard
fun popToRootViewController(animated: Boolean = true)

Pop to root screen (equivalent to iOS popToRootViewController)

Link copied to clipboard
fun present(route: String, fullScreen: Boolean = false, animated: Boolean = true)

Present a screen modally (for future modal implementations)

Link copied to clipboard
fun pushDownloadPreviewViewController(url: String, format: Format, animated: Boolean = true)

Navigate to Download Preview screen

Link copied to clipboard
fun pushImageDetailsViewController(imageUrl: String, animated: Boolean = true)

Navigate to Image Details screen

Link copied to clipboard
fun pushLanguageViewController(animated: Boolean = true)

Navigate to Language selection screen

Link copied to clipboard
fun pushSettingsViewController(animated: Boolean = true)

Navigate to Settings screen

Link copied to clipboard
fun pushViewController(route: String, animated: Boolean = true, removePreviousVCs: Boolean = false)

Push a new screen onto the navigation stack (equivalent to iOS pushViewController)