AlertPresenter

actual class AlertPresenter : BaseAlertPresenter, CoroutineScope

Deprecated

This feature has been deprecated. It is recommended to use Compose Multiplatform instead.

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.

Deprecated

This feature has been deprecated. It is recommended to use Compose Multiplatform instead.

Class for presenting an Alert. Implementation of BaseAlertPresenter

Deprecated

This feature has been deprecated. It is recommended to use Compose Multiplatform instead.

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.

Constructors

Link copied to clipboard
constructor(alert: Alert, lifecycleManagerObserver: LifecycleManagerObserver = LifecycleManagerObserver(), coroutineScope: CoroutineScope, logger: Logger)
constructor(alert: Alert, parent: UIViewController, logger: Logger, delegateBuilder: (Alert) -> UIPopoverPresentationControllerDelegateProtocol)

Types

class DefaultUIPopoverPresentationControllerDelegateProtocol(sourceView: UIView) : NSObject, UIPopoverPresentationControllerDelegateProtocol

Properties

Link copied to clipboard
Link copied to clipboard

Functions

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

Dismisses the currently presented Alert

open override fun dismiss(animated: Boolean = true)

Dismisses the currently presented Alert

open override fun dismiss(animated: Boolean = true)

Dismisses the currently presented Alert

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

Presents an Alert and suspends until completion

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

Presents an Alert and suspends until completion

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

Presents an Alert and suspends until completion

Link copied to clipboard
open override fun showAsync(animated: Boolean = true, completion: () -> Unit = {})

Presents an Alert

open override fun showAsync(animated: Boolean = true, completion: () -> Unit = {})

Presents an Alert

open override fun showAsync(animated: Boolean = true, 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