Package-level declarations

Types

Link copied to clipboard
private class AndroidWebUiController(val webView: WebView) : WebUiController

Coordinates AndroidWebUiController behavior in the SDAI presentation layer.

Link copied to clipboard

Coordinates IosWebUiController behavior in the SDAI presentation layer.

Link copied to clipboard
private class WebUiClient(val onLoadingChanged: (Boolean) -> Unit = {}) : WebViewClient

Coordinates WebUiClient behavior in the SDAI presentation layer.

Link copied to clipboard
interface WebUiController

Defines the WebUiController contract for the SDAI presentation layer.

Link copied to clipboard
sealed interface WebUiIntent : MviIntent

Defines the WebUiIntent contract for the SDAI presentation layer.

Link copied to clipboard
data class WebUiState(val loading: Boolean = true, val source: ServerSource = ServerSource.AUTOMATIC1111, val url: String = "") : MviState

Carries WebUiState data through the SDAI presentation layer.

Link copied to clipboard
class WebUiViewModel(dispatchersProvider: DispatchersProvider, preferenceManager: PreferenceManager, val router: WebUiRouter) : BaseMviViewModel<WebUiState, WebUiIntent, EmptyEffect>

Coordinates WebUiViewModel behavior in the SDAI presentation layer.

Functions

Link copied to clipboard
private fun AndroidWebUiView(modifier: Modifier = Modifier, url: String, client: WebViewClient, onWebViewChanged: (WebView) -> Unit = {})

Renders the AndroidWebUiView UI for the SDAI presentation layer.

Link copied to clipboard
private fun String.toRequest(): NSURLRequest

Converts SDAI data with toRequest.

Link copied to clipboard
internal actual fun WebUiBackHandler(onBack: () -> Unit)

Renders the WebUiBackHandler UI for the SDAI presentation layer.

internal expect fun WebUiBackHandler(onBack: () -> Unit)

Renders the WebUiBackHandler UI for the SDAI presentation layer.

internal actual fun WebUiBackHandler(onBack: () -> Unit)

Renders the WebUiBackHandler UI for the SDAI presentation layer.

Link copied to clipboard
internal actual fun WebUiBrowser(modifier: Modifier, url: String, onLoadingChanged: (Boolean) -> Unit, onControllerChanged: (WebUiController?) -> Unit)

Renders the WebUiBrowser UI for the SDAI presentation layer.

internal expect fun WebUiBrowser(modifier: Modifier = Modifier, url: String, onLoadingChanged: (Boolean) -> Unit = {}, onControllerChanged: (WebUiController?) -> Unit = {})

Renders the WebUiBrowser UI for the SDAI presentation layer.

internal actual fun WebUiBrowser(modifier: Modifier, url: String, onLoadingChanged: (Boolean) -> Unit, onControllerChanged: (WebUiController?) -> Unit)

Renders the WebUiBrowser UI for the SDAI presentation layer.

Link copied to clipboard
fun WebUiScreen(router: WebUiRouter? = null)

Renders the WebUiScreen UI for the SDAI presentation layer.

Link copied to clipboard
fun WebUiScreenContent(state: WebUiState = WebUiState(), processIntent: (WebUiIntent) -> Unit = {})

Renders the WebUiScreenContent UI for the SDAI presentation layer.

Link copied to clipboard

Executes the webUiUrl step in the SDAI presentation layer.