NonPausablePresenter

By default CircuitContent will wrap presenters so that the last emitted CircuitUiState is replayed when the presenter is paused. If this behavior is not wanted, the Presenter should implement this interface to disable the behavior.

Functions

Link copied to clipboard
abstract fun present(): UiState
Link copied to clipboard
inline fun <UiState : CircuitUiState> Presenter<UiState>.presentWithLifecycle(key: String? = null, isActive: Boolean = LocalRecordLifecycle.current.isActive): UiState

Presents the UI state when the lifecycle is resumed, otherwise will replay the last emitted UI state.