Builder

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var onUnavailableContent: @Composable (screen: Screen, modifier: Modifier) -> Unit
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
inline fun <S : Screen, UiState : CircuitUiState> addPresenter(crossinline factory: (screen: S, navigator: Navigator, context: CircuitContext) -> Presenter<UiState>): Circuit.Builder
Link copied to clipboard
inline fun <S : Screen, UiState : CircuitUiState> addStaticUi(crossinline content: @Composable (screen: S, modifier: Modifier) -> Unit): Circuit.Builder

Adds a static UI that does not require a presenter. This is useful for screens that do not have computed state. They can either be stateless or use the given screen as an input for its state.

Link copied to clipboard
inline fun <S : Screen, UiState : CircuitUiState> addUi(crossinline content: @Composable (state: UiState, modifier: Modifier) -> Unit): Circuit.Builder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun build(): Circuit
Link copied to clipboard
Link copied to clipboard
fun setOnUnavailableContent(content: @Composable (screen: Screen, modifier: Modifier) -> Unit): Circuit.Builder