Package-level declarations

Types

Link copied to clipboard
sealed interface DonateEffect : MviEffect

Defines the DonateEffect contract for the SDAI presentation layer.

Link copied to clipboard
sealed interface DonateIntent : MviIntent

Defines the DonateIntent contract for the SDAI presentation layer.

Link copied to clipboard
data class DonateScreenStrings(val title: String, val thanksTitle: String, val bottomTitle: String, val bottomSubtitle: String, val bottomEnding: String, val backContentDescription: String)

Carries DonateScreenStrings data through the SDAI presentation layer.

Link copied to clipboard
data class DonateState(val loading: Boolean = true, val supporters: List<Supporter> = emptyList()) : MviState

Carries DonateState data through the SDAI presentation layer.

Link copied to clipboard
class DonateViewModel(val dispatchersProvider: DispatchersProvider, val fetchSupportersUseCase: FetchSupportersUseCase, val linksProvider: LinksProvider, val router: DonateRouter, val onError: (Throwable) -> Unit = {}) : BaseMviViewModel<DonateState, DonateIntent, DonateEffect>

Coordinates DonateViewModel behavior in the SDAI presentation layer.

Functions

Link copied to clipboard
internal actual fun DonateBrandIcon()

Renders the DonateBrandIcon UI for the SDAI presentation layer.

internal expect fun DonateBrandIcon()

Renders the DonateBrandIcon UI for the SDAI presentation layer.

internal actual fun DonateBrandIcon()

Renders the DonateBrandIcon UI for the SDAI presentation layer.

Link copied to clipboard
fun DonateScreen(router: DonateRouter? = null)

Renders the DonateScreen UI for the SDAI presentation layer.

Link copied to clipboard
fun DonateScreenContent(state: DonateState, strings: DonateScreenStrings, processIntent: (DonateIntent) -> Unit, modifier: Modifier = Modifier, brandIcon: @Composable () -> Unit = {})

Renders the DonateScreenContent UI for the SDAI presentation layer.

Link copied to clipboard

Renders the donateScreenStrings UI for the SDAI presentation layer.