Builder

class Builder(style: Alert.Style = Style.ALERT)

Builder class for creating an Alert

Constructors

Link copied to clipboard
constructor(style: Alert.Style = Style.ALERT)

Functions

Link copied to clipboard
fun addActions(vararg actions: Alert.Action): Alert.Builder

Adds a list of Action to the alert

Link copied to clipboard
fun build(): Alert

Creates an Alert based on title, message, actions and textInputAction properties

Link copied to clipboard

Sets the message displayed in the alert

Link copied to clipboard

Sets an Action with Action.Style.NEGATIVE. If one already exists it will be replaced.

Link copied to clipboard

Sets the Action with Action.Style.NEUTRAL. If one already exists it will be replaced.

Link copied to clipboard

Sets an Action with Action.Style.POSITIVE. If one already exists it will be replaced.

Link copied to clipboard
fun setTextInput(text: String? = null, placeholder: String?, textObserver: AlertTextObserver): Alert.Builder

Initializes alert's input field

Link copied to clipboard

Sets the title displayed in the alert