HUD

actual class HUD : BaseHUD

Default BaseHUD implementation.

expect class HUD : BaseHUD

Default BaseHUD implementation.

actual class HUD : BaseHUD

Default BaseHUD implementation.

Types

Link copied to clipboard

Builder class for creating a HUD

expect class Builder : BaseHUD.Builder

Builder class for creating a HUD

actual class Builder : BaseHUD.Builder

Builder class for creating a HUD

Properties

coroutineContext
Link copied to clipboard
Link copied to clipboard
actual open override val hudConfig: HudConfig

The HudConfig of the HUD being presented.

expect open override val hudConfig: HudConfig

The HudConfig of the HUD being presented.

actual open override val hudConfig: HudConfig

The HudConfig of the HUD being presented.

Link copied to clipboard
actual open override val isVisible: Boolean

Returns true if indicator is visible

expect open override val isVisible: Boolean

Returns true if indicator is visible

actual open override val isVisible: Boolean

Returns true if indicator is visible

Link copied to clipboard

The HUDStyle of the HUD.

Link copied to clipboard

The title of the HUD.

Functions

Link copied to clipboard
actual open suspend override fun dismiss(animated: Boolean = true)

Dismisses the indicator

expect open suspend override fun dismiss(animated: Boolean = true)

Dismisses the indicator

actual open suspend override fun dismiss(animated: Boolean = true)

Dismisses the indicator

Link copied to clipboard
fun BaseHUD.dismissAfter(timeMillis: Long, animated: Boolean = true): BaseHUD

Dismisses the indicator after timeMillis milliseconds

fun BaseHUD.dismissAfter(duration: Duration, animated: Boolean = true): BaseHUD

Dismisses the indicator after duration

Link copied to clipboard
actual open suspend override fun present(animated: Boolean = true): HUD

Presents as indicator

expect open suspend override fun present(animated: Boolean = true): HUD

Presents as indicator

actual open suspend override fun present(animated: Boolean = true): HUD

Presents as indicator

Link copied to clipboard
suspend fun <T> BaseHUD.presentDuring(animated: Boolean = true, block: suspend BaseHUD.() -> T): T

Presents and keep presenting the indicator during block execution, hides view after block finished.