MessageHelper
public protocol MessageHelper
MessageHelper defines the action that a message helper should do.
Version
1.9.15Date
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
titleThe title of the message.
contentThe content.
confirmButtonNameThe 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
titleThe title of the message.
contentThe content of the message.
confirmButtonNameThe name of the confirm button.
cancelButtonNameThe name of the cancel button.
-
Popup an error message.
Declaration
Swift
func showError(_ content: String, withTitle title: String, withConfirmButtonName confirmButtonName: String)Parameters
titleThe title of the message.
contentThe content of the message.
confirmButtonNameThe name of the confirm button.
-
Show an input box.
Declaration
Swift
func showInput(withTitle title: String, withConfirmButtonName confirmButtonName: String, withCancelButtonName cancelButtonName: String)Parameters
titleThe title of the message.
confirmButtonNameThe name of the confirm button.
cancelButtonNameThe name of the cancel button.
-
successTitleExtension methodDefault message title.
Declaration
Swift
static var successTitle: String { get } -
warningTitleExtension methodUndocumented
Declaration
Swift
static var warningTitle: String { get } -
errorTitleExtension methodUndocumented
Declaration
Swift
static var errorTitle: String { get } -
infoConfirmButtonNameExtension methodThe name of the button.
Declaration
Swift
static var infoConfirmButtonName: String { get } -
warningConfirmButtonNameExtension methodUndocumented
Declaration
Swift
static var warningConfirmButtonName: String { get } -
warningCancelButtonNameExtension methodUndocumented
Declaration
Swift
static var warningCancelButtonName: String { get } -
errorConfirmButtonNameExtension methodUndocumented
Declaration
Swift
static var errorConfirmButtonName: String { get } -
inputConfirmButtonNameExtension methodUndocumented
Declaration
Swift
static var inputConfirmButtonName: String { get } -
inputCancelButtonNameExtension methodUndocumented
Declaration
Swift
static var inputCancelButtonName: String { get } -
inputHintExtension methodInput hint.
Declaration
Swift
static var inputHint: String { get }
MessageHelper Protocol Reference