MockAlertPresenter

class MockAlertPresenter(alert: Alert, logger: Logger, setupMocks: Boolean = true) : BaseAlertPresenter

Mock implementation of BaseAlertPresenter

Parameters

alert

The Alert to display

setupMocks

if true this automatically sets up mocks to handle displaying this MockAlertPresenter

Constructors

Link copied to clipboard
constructor(alert: Alert, logger: Logger, setupMocks: Boolean = true)

Types

Link copied to clipboard
class Builder(setupMocks: Boolean = true) : BaseAlertPresenter.Builder

Mock implementation of BaseAlertPresenter.Builder

Properties

Link copied to clipboard
Link copied to clipboard

true if the MockAlertPresenter is currently being presented

Link copied to clipboard

Functions

Link copied to clipboard

Closes the MockAlertPresenter by handling an action

Link copied to clipboard
open override fun dismiss(animated: Boolean)
Link copied to clipboard
open suspend override fun show(animated: Boolean): Alert.Action?
Link copied to clipboard
open override fun showAsync(animated: Boolean, completion: () -> Unit)