Builder

A BaseAlertPresenter.Builder for creating an AlertPresenter

Parameters

lifecycleManagerObserver

The LifecycleManagerObserver to observe lifecycle changes

actual class Builder

A BaseAlertPresenter.Builder for creating an AlertPresenter

Parameters

viewController

The UIViewController to present any AlertPresenter built using this builder.

delegateBuilder

Method that creates a UIPopoverPresentationControllerDelegateProtocol for an Alert. This allows for presentation of Alert.Style.ACTION_LIST on iPad.

Constructors

Link copied to clipboard
constructor(lifecycleManagerObserver: LifecycleManagerObserver = LifecycleManagerObserver())
constructor(viewController: <Error class: unknown class>)

Constructor that returns a DefaultUIPopoverPresentationControllerDelegateProtocol when a presented AlertPresenter requires a UIPopoverPresentationControllerDelegateProtocol.

constructor(viewController: <Error class: unknown class>, delegateBuilder: (<Error class: unknown class>) -> <Error class: unknown class>)
constructor()
constructor()

Properties

Link copied to clipboard

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)

Link copied to clipboard
actual open override fun create(alert: Alert, coroutineScope: CoroutineScope): AlertPresenter

Creates an AlertPresenter

expect open override fun create(alert: Alert, coroutineScope: CoroutineScope): AlertPresenter

Creates an AlertPresenter

actual open override fun create(alert: Alert, coroutineScope: CoroutineScope): AlertPresenter

Creates an AlertPresenter

actual open override fun create(alert: Alert, coroutineScope: CoroutineScope): AlertPresenter

Creates an AlertPresenter

Link copied to clipboard
Link copied to clipboard
open override fun unsubscribe()