MessageHelper

public protocol MessageHelper

MessageHelper defines the action that a message helper should do.

Author

Adamas

Version

1.9.15

Date

29/03/2023
  • Undocumented

    Declaration

    Swift

    var delegate: MessageHelperDelegate? { get set }
  • Popup an information message.

    Declaration

    Swift

    func showInfo(_ content: String,
                  withTitle title: String,
                  withConfirmButtonName confirmButtonName: String)

    Parameters

    title

    The title of the message.

    content

    The content.

    confirmButtonName

    The name of the confirm button.

  • Popup a warning message.

    Declaration

    Swift

    func showWarning(_ content: String,
                     withTitle title: String,
                     withConfirmButtonName confirmButtonName: String,
                     withCancelButtonName cancelButtonName: String)

    Parameters

    title

    The title of the message.

    content

    The content of the message.

    confirmButtonName

    The name of the confirm button.

    cancelButtonName

    The name of the cancel button.

  • Popup an error message.

    Declaration

    Swift

    func showError(_ content: String,
                   withTitle title: String,
                   withConfirmButtonName confirmButtonName: String)

    Parameters

    title

    The title of the message.

    content

    The content of the message.

    confirmButtonName

    The name of the confirm button.

  • Show an input box.

    Declaration

    Swift

    func showInput(withTitle title: String,
                   withConfirmButtonName confirmButtonName: String,
                   withCancelButtonName cancelButtonName: String)

    Parameters

    title

    The title of the message.

    confirmButtonName

    The name of the confirm button.

    cancelButtonName

    The name of the cancel button.

  • successTitle Extension method

    Default message title.

    Declaration

    Swift

    static var successTitle: String { get }
  • warningTitle Extension method

    Undocumented

    Declaration

    Swift

    static var warningTitle: String { get }
  • errorTitle Extension method

    Undocumented

    Declaration

    Swift

    static var errorTitle: String { get }
  • infoConfirmButtonName Extension method

    The name of the button.

    Declaration

    Swift

    static var infoConfirmButtonName: String { get }
  • warningConfirmButtonName Extension method

    Undocumented

    Declaration

    Swift

    static var warningConfirmButtonName: String { get }
  • warningCancelButtonName Extension method

    Undocumented

    Declaration

    Swift

    static var warningCancelButtonName: String { get }
  • errorConfirmButtonName Extension method

    Undocumented

    Declaration

    Swift

    static var errorConfirmButtonName: String { get }
  • inputConfirmButtonName Extension method

    Undocumented

    Declaration

    Swift

    static var inputConfirmButtonName: String { get }
  • inputCancelButtonName Extension method

    Undocumented

    Declaration

    Swift

    static var inputCancelButtonName: String { get }
  • inputHint Extension method

    Input hint.

    Declaration

    Swift

    static var inputHint: String { get }