ISupportStateLayout

Contract for state layout

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val interactionFlow: Flow<ClickableItem>

Observable for click interactions, which returns the current network state

Link copied to clipboard
abstract val isContent: Boolean
Link copied to clipboard
abstract val isError: Boolean
Link copied to clipboard
abstract val isLoading: Boolean
Link copied to clipboard
abstract val loadStateFlow: MutableStateFlow<LoadState>

Observable for publishing states to this widget

Link copied to clipboard
abstract val stateConfigFlow: MutableStateFlow<StateLayoutConfig?>

Configuration for that should be used by the different view states

Functions

Link copied to clipboard
abstract fun onInit(context: Context, attrs: AttributeSet? = null, styleAttr: Int? = null)

Callable in view constructors to perform view inflation and attribute initialization

Link copied to clipboard
open fun onViewRecycled()

Should be called on a view's detach from window to unbind or release object references and cancel all running coroutine jobs if the current view