StateSlot

data class StateSlot(val contentPadding: PaddingValues, val icon: ToolkitIcon, val onRetry: () -> Unit?, val showAd: Boolean)(source)

What a ScreenStateHandler knows when it draws a case other than Loadable.Ready.

Constructors

Link copied to clipboard
constructor(contentPadding: PaddingValues, icon: ToolkitIcon, onRetry: () -> Unit?, showAd: Boolean)

Properties

Link copied to clipboard

The padding the content keeps, usually the screen's content padding.

Link copied to clipboard

The screen's icon for its empty and failure content.

Link copied to clipboard
val onRetry: () -> Unit?

Tries again, or null when trying again does not apply to this case.

Link copied to clipboard

Whether the content may show its native ad.