AlertPresenter

constructor(alert: Alert, lifecycleManagerObserver: LifecycleManagerObserver = LifecycleManagerObserver(), coroutineScope: CoroutineScope, logger: Logger)

Parameters

alert

The Alert being presented.

lifecycleManagerObserver

The LifecycleManagerObserver to observe lifecycle changes

coroutineScope

The CoroutineScope managing changes to the alert presentation.

constructor(alert: Alert, parent: UIViewController, logger: Logger, delegateBuilder: (Alert) -> KalugaUIPopoverPresentationControllerDelegateProtocol)

Parameters

alert

The Alert being presented.

parent

The UIViewController to present the Alert

delegateBuilder

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