State

sealed class State

Defined states. While failure, success and custom are stationary screens, the loading state can be updated dynamically to reflect progress.

Parameters

customView

Use for a custom composable view instead of the default state view

preView

A custom composable view that is added above the indicator view

postView

A custom composable view that is added below the indicator view

labelText

The text for a label that is displayed at the top of the state view

Inheritors

Types

Link copied to clipboard
class Failure : State

Failure state.

Link copied to clipboard
class Loading : State

Loading state.

Link copied to clipboard
class Success : State

Success state.

Properties

Link copied to clipboard
val customView: @Composable () -> Unit? = null
Link copied to clipboard
val labelText: String? = null
Link copied to clipboard
val postView: @Composable () -> Unit? = null
Link copied to clipboard
val preView: @Composable () -> Unit? = null