ManagedContent

fun ManagedContent(    content: @Composable () -> Unit,     viewModel: EquinoxViewModel,     loadingRoutine: suspend () -> Boolean? = null,     initialDelay: Long? = null,     serverOfflineUiDefaults: FallbackUiDefaults = createFallbackUiAppearance(),     serverOfflineRetryText: StringResource? = null,     serverOfflineRetryAction: @Composable () -> Unit? = null,     noInternetConnectionUiDefaults: FallbackUiDefaults = createFallbackUiAppearance(),     noInternetConnectionRetryText: StringResource? = null,     noInternetConnectionRetryAction: @Composable () -> Unit? = null)

Method used to display the correct content based on the current scenario such server offline or device disconnected or no internet connection available

Parameters

content

The content to display in a normal scenario

viewModel

The viewmodel used by the context where this method has been invoked, this is used to stop the refreshing routine when the internet connection is not available by the NoInternetConnectionUi

loadingRoutine

The routine used to load the data

initialDelay

An initial delay to apply to the loadingRoutine before to start

serverOfflineUiDefaults

The style to apply to the ServerOfflineUi fallback page

serverOfflineRetryText

The informative text for the user

serverOfflineRetryAction

The action to retry the connection to the server

noInternetConnectionUiDefaults

The style to apply to the NoInternetConnectionUi fallback page

noInternetConnectionRetryText

The informative text for the user

noInternetConnectionRetryAction

The action to retry the internet connection scan