ContentLoadError

fun SMC.ContentLoadError(    modifier: Modifier = Modifier,     icon: @Composable () -> Unit? = null,     title: @Composable () -> Unit,     description: @Composable () -> Unit = {},     retryButton: @Composable () -> Unit? = null)

Reusable composable used to display content load errors. Contains slots for an icon, title, description and retry (or other action) button. Styled after our default SM Content Loading Error.

Parameters

modifier

The modifier that will be applied to the column wrapping the composable

icon

(optional) The icon to be displayed

title

The error title to be displayed

description

(optional) The error description to be displayed

retryButton

(optional) The retry (or other action) button to display


fun SMC.ContentLoadError(    modifier: Modifier = Modifier,     onRetryClicked: () -> Unit,     retryButtonText: String = stringResource(id = R.string.sb__base_contentloaderror_retry_button),     icon: @Composable () -> Unit = { },     title: @Composable () -> Unit,     description: @Composable () -> Unit = { })

Reusable composable used to display content load errors. Contains slots for an icon, title and description. Contains a simpler implementation for the retry button with parameters to handle the button being clicked and for the button's content. Styled after our default SM Content Loading Error.

Parameters

modifier

The modifier that will be applied to the column wrapping the composable

onRetryClicked

Retry button click handler

retryButtonText

Retry button text

icon

(optional) The icon to be displayed

title

(optional) The error title to be displayed

description

The error description to be displayed