Package-level declarations

Types

Link copied to clipboard
sealed interface DownloadDialogEffect : MviEffect

Defines the DownloadDialogEffect contract for the SDAI presentation layer.

Link copied to clipboard
sealed interface DownloadDialogIntent : MviIntent

Defines the DownloadDialogIntent contract for the SDAI presentation layer.

Link copied to clipboard
data class DownloadDialogState(val sources: List<Pair<String, Boolean>> = emptyList()) : MviState

Carries DownloadDialogState data through the SDAI presentation layer.

Link copied to clipboard
class DownloadDialogViewModel(modelId: String, val getLocalModelUseCase: GetLocalModelUseCase, val dispatchersProvider: DispatchersProvider, val onError: (Throwable) -> Unit = {}) : BaseMviViewModel<DownloadDialogState, DownloadDialogIntent, DownloadDialogEffect>

Coordinates DownloadDialogViewModel behavior in the SDAI presentation layer.

Properties

Link copied to clipboard
internal const val GITHUB_WEB_RESOURCE: String

Exposes the GITHUB_WEB_RESOURCE value used by the SDAI presentation layer.

Link copied to clipboard
internal const val SDAI_WEB_RESOURCE: String

Exposes the SDAI_WEB_RESOURCE value used by the SDAI presentation layer.

Functions

Link copied to clipboard
fun DownloadDialog(modifier: Modifier = Modifier, modelId: String, onDismissRequest: () -> Unit, onDownloadSourceSelected: (url: String) -> Unit)

Renders the DownloadDialog UI for the SDAI presentation layer.

Link copied to clipboard
private fun DownloadDialogContent(modifier: Modifier = Modifier, state: DownloadDialogState = DownloadDialogState(), processIntent: (DownloadDialogIntent) -> Unit = {})

Renders the DownloadDialogContent UI for the SDAI presentation layer.

Link copied to clipboard
internal actual fun DownloadSourceIcon(host: String, modifier: Modifier)

Renders the DownloadSourceIcon UI for the SDAI presentation layer.

internal expect fun DownloadSourceIcon(host: String, modifier: Modifier = Modifier)

Renders the DownloadSourceIcon UI for the SDAI presentation layer.

internal actual fun DownloadSourceIcon(host: String, modifier: Modifier)

Renders the DownloadSourceIcon UI for the SDAI presentation layer.