AlertPresenter

actual class AlertPresenter : BaseAlertPresenter, CoroutineScope

A BaseAlertPresenter for presenting an Alert.

Parameters

alert

The Alert being presented.

lifecycleManagerObserver

The LifecycleManagerObserver to observe lifecycle changes

coroutineScope

The CoroutineScope managing changes to the alert presentation.

Class for presenting an Alert. Implementation of BaseAlertPresenter

actual class AlertPresenter

A BaseAlertPresenter for presenting an Alert.

Parameters

alert

The Alert being presented.

parent

The UIViewController to present the Alert

delegateBuilder

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

A BaseAlertPresenter for presenting an Alert.

This is not yet fully implemented on JavaScript

Parameters

alert

The Alert being presented.

A BaseAlertPresenter for presenting an Alert.

This is not yet fully implemented on JVM

Parameters

alert

The Alert being presented.

Constructors

Link copied to clipboard
constructor(alert: Alert, lifecycleManagerObserver: LifecycleManagerObserver = LifecycleManagerObserver(), coroutineScope: CoroutineScope)
constructor(alert: <Error class: unknown class>, parent: <Error class: unknown class>, delegateBuilder: (<Error class: unknown class>) -> <Error class: unknown class>)
constructor(alert: Alert)
constructor(alert: Alert)

Types

Link copied to clipboard
class DefaultUIPopoverPresentationControllerDelegateProtocol(sourceView: <Error class: unknown class>)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun dismiss(animated: Boolean)

Dismisses the currently presented Alert

open override fun dismiss(animated: Boolean)

Dismisses the currently presented Alert

open override fun dismiss(animated: Boolean)

Dismisses the currently presented Alert

open override fun dismiss(animated: Boolean)

Dismisses the currently presented Alert

Link copied to clipboard
open fun dismissAlert(animated: Boolean)
Link copied to clipboard
open suspend override fun show(animated: Boolean): Alert.Action?

Presents an Alert and suspends until completion

open suspend override fun show(animated: Boolean): Alert.Action?

Presents an Alert and suspends until completion

open suspend override fun show(animated: Boolean): Alert.Action?

Presents an Alert and suspends until completion

open suspend override fun show(animated: Boolean): Alert.Action?

Presents an Alert and suspends until completion

Link copied to clipboard
open fun showAlert(animated: Boolean, afterHandler: (<Error class: unknown class>?) -> Unit, completion: () -> Unit)
Link copied to clipboard
open override fun showAsync(animated: Boolean, completion: () -> Unit)

Presents an Alert

open override fun showAsync(animated: Boolean, completion: () -> Unit)

Presents an Alert

open override fun showAsync(animated: Boolean, completion: () -> Unit)

Presents an Alert

open override fun showAsync(animated: Boolean, completion: () -> Unit)

Presents an Alert

Link copied to clipboard

Callback called from UITextField for action of type UIControlEventEditingChanged for alerts of type Alert.Style.TEXT_INPUT