ViewState

class ViewState<T>(viewEventContract: ViewEventContract? = null, defaultViewState: ViewStatefulEvent = ViewStatefulEvent.Idle) : ViewStateContract<T>

Constructors

Link copied to clipboard
constructor(viewEventContract: ViewEventContract? = null, defaultViewState: ViewStatefulEvent = ViewStatefulEvent.Idle)

Properties

Link copied to clipboard
open override val isDataLoaded: Boolean
Link copied to clipboard
open override val isDataNotLoaded: Boolean
Link copied to clipboard
open override var payload: T?
Link copied to clipboard
open override val viewState: StateFlow<ViewStatefulEvent>

Functions

Link copied to clipboard
open suspend override fun emitEvent(apiResult: ApiResult<T>)
Link copied to clipboard
open override fun emitState(apiResult: ApiResult<T>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun refreshPayload()
Link copied to clipboard
Link copied to clipboard