Cancel

public protocol Cancel

Declare a method to add a cancelable action.

  • Add cancel action for alert and returns approvable object. The title of the action is Cancel.

    Declaration

    Swift

    func cancel() -> Approve & DestructiveApprove

    Return Value

    An approvable object.

  • Add cancel action for alert and returns approvable object.

    Declaration

    Swift

    func cancel(title: String) -> Approve & DestructiveApprove

    Parameters

    title

    The title of the action.

    Return Value

    An approvable object.

  • Add cancel action for alert and returns approvable object. The title of the action is Cancel.

    Declaration

    Swift

    func cancel(_ handler: @escaping ((UIAlertAction) -> Void)) -> Approve & DestructiveApprove

    Parameters

    handler

    A block to execute when the user selects the action.

    Return Value

    An approvable object.

  • Add cancel action for alert and returns approvable object.

    Declaration

    Swift

    func cancel(title: String, handler: @escaping ((UIAlertAction) -> Void)) -> Approve & DestructiveApprove

    Parameters

    title

    The title of the action.

    handler

    A block to execute when the user selects the action.

    Return Value

    An approvable object.