AlertAction

public class AlertAction

Describes each action that is going to be shown in the ‘AlertViewController’

  • Initialized an ‘AlertAction’

    Declaration

    Swift

    public init(title: String, style: AlertActionStyle, handler: AlertActionHandler?)

    Parameters

    title

    The title for the action, that will be used as the title for a button in the alert controller

    style

    The style for the action, that will be used to style a button in the alert controller.

    handler

    The handler for the action, that will be called when the user clicks on a button in the alert controller.

    Return Value

    An inmutable AlertAction object