RootAppRouter

Coordinates RootAppRouter behavior in the SDAI presentation layer.

Author

Dmitriy Moroz

Parameters

initialRoute

initial route value consumed by the API.

Constructors

Link copied to clipboard
constructor(initialRoute: AppRoute = AppRoute.Splash)

Properties

Link copied to clipboard
val canNavigateBack: StateFlow<Boolean>
Link copied to clipboard
private val canNavigateBackState: MutableStateFlow<Boolean>
Link copied to clipboard
val drawerOpen: StateFlow<Boolean>
Link copied to clipboard
private val drawerOpenState: MutableStateFlow<Boolean>
Link copied to clipboard
val route: StateFlow<AppRoute>
Link copied to clipboard
Link copied to clipboard
private val routeState: MutableStateFlow<AppRoute>

Functions

Link copied to clipboard
private fun canNavigateBackFrom(route: AppRoute): Boolean
Link copied to clipboard
open override fun closeDrawer()

Executes the closeDrawer step in the SDAI presentation layer.

Link copied to clipboard
open override fun navigateBack()

Executes the navigateBack step in the SDAI presentation layer.

Link copied to clipboard
private fun navigateTo(route: AppRoute)
Link copied to clipboard
open override fun navigateToDebugMenu()

Executes the navigateToDebugMenu step in the SDAI presentation layer.

Link copied to clipboard
open override fun navigateToDonate()

Executes the navigateToDonate step in the SDAI presentation layer.

Link copied to clipboard
open override fun navigateToGallery()

Executes the navigateToGallery step in the SDAI presentation layer.

Link copied to clipboard
open override fun navigateToGalleryDetails(itemId: Long)

Executes the navigateToGalleryDetails step in the SDAI presentation layer.

Link copied to clipboard
Link copied to clipboard
open override fun navigateToHistory()

Executes the navigateToHistory step in the SDAI presentation layer.

Link copied to clipboard
private fun navigateToHomeRoute(route: AppRoute)
Link copied to clipboard
open override fun navigateToHomeScreen()

Renders the navigateToHomeScreen UI for the SDAI presentation layer.

Link copied to clipboard
open override fun navigateToImageInPaint()

Executes the navigateToImageInPaint step in the SDAI presentation layer.

Link copied to clipboard
open override fun navigateToImageToImage()

Executes the navigateToImageToImage step in the SDAI presentation layer.

Link copied to clipboard
open override fun navigateToLogger()

Executes the navigateToLogger step in the SDAI presentation layer.

Link copied to clipboard
open override fun navigateToOnBoarding(source: LaunchSource)

Executes the navigateToOnBoarding step in the SDAI presentation layer.

Link copied to clipboard
open override fun navigateToOnBoardingFromSplash()

Executes the navigateToOnBoardingFromSplash step in the SDAI presentation layer.

Link copied to clipboard

Executes the navigateToPostOnBoardingConfigLoader step in the SDAI presentation layer.

Link copied to clipboard

Executes the navigateToPostSetupConfigLoader step in the SDAI presentation layer.

Link copied to clipboard

Executes the navigateToPostSplashConfigLoader step in the SDAI presentation layer.

Link copied to clipboard
open override fun navigateToReportImage(itemId: Long)

Executes the navigateToReportImage step in the SDAI presentation layer.

Link copied to clipboard
open override fun navigateToServerSetup()
open override fun navigateToServerSetup(source: LaunchSource)

Executes the navigateToServerSetup step in the SDAI presentation layer.

Link copied to clipboard

Executes the navigateToServerSetupAfterOnBoarding step in the SDAI presentation layer.

Link copied to clipboard

Executes the navigateToServerSetupFromSplash step in the SDAI presentation layer.

Link copied to clipboard
open override fun navigateToSettings()

Executes the navigateToSettings step in the SDAI presentation layer.

Link copied to clipboard
open override fun navigateToTextToImage()

Executes the navigateToTextToImage step in the SDAI presentation layer.

Link copied to clipboard
Link copied to clipboard
open override fun openDrawer()

Executes the openDrawer step in the SDAI presentation layer.

Link copied to clipboard

Executes the postOnBoardingNavigation step in the SDAI presentation layer.

Link copied to clipboard

Executes the postSplashNavigation step in the SDAI presentation layer.

Link copied to clipboard
private fun replaceRoute(route: AppRoute)
Link copied to clipboard
private fun setRoute(route: AppRoute)