Package-level declarations

Types

Link copied to clipboard
data class Alert(val title: String?, val message: String?, val actions: List<Alert.Action>, val textInputAction: Alert.TextInputAction? = null, val style: Alert.Style = Style.ALERT)

An object that represents an alert with title and/or message and actions (button)

Link copied to clipboard
typealias AlertActionHandler = () -> Unit
Link copied to clipboard
interface AlertActions

Interface that defines actions that can be used for presenting an Alert.

Link copied to clipboard
actual class AlertPresenter : BaseAlertPresenter, CoroutineScope

A BaseAlertPresenter for presenting an Alert.

Class for presenting an Alert. Implementation of BaseAlertPresenter

actual class AlertPresenter

A BaseAlertPresenter for presenting an Alert.

A BaseAlertPresenter for presenting an Alert.

A BaseAlertPresenter for presenting an Alert.

Link copied to clipboard
typealias AlertTextObserver = (String) -> Unit
Link copied to clipboard
abstract class BaseAlertPresenter(alert: Alert) : AlertActions

Abstract alert presenter, used to show and dismiss given Alert

Functions

Link copied to clipboard
fun BaseAlertPresenter.Builder.buildActionSheet(coroutineScope: CoroutineScope, initialize: Alert.Builder.() -> Unit): BaseAlertPresenter

Builds a BaseAlertPresenter of type Alert.Style.ACTION_LIST using DSL syntax (thread safe)

Link copied to clipboard
fun BaseAlertPresenter.Builder.buildAlert(coroutineScope: CoroutineScope, initialize: Alert.Builder.() -> Unit): BaseAlertPresenter

Builds a BaseAlertPresenter of type Alert.Style.ALERT using DSL syntax (thread safe)

Link copied to clipboard
fun BaseAlertPresenter.Builder.buildAlertWithInput(coroutineScope: CoroutineScope, initialize: Alert.Builder.() -> Unit): BaseAlertPresenter

Builds a BaseAlertPresenter of type Alert.Style.TEXT_INPUT using DSL syntax (thread safe)