Enumerations

The following enumerations are available globally.

  • Defines both validation rules (e.g : isEmail, isNotEmpty,.. ), and when the check will be done.

    • standard: there is no check until the user presses the send button. In case of error, checks are then done for each character change (with a short delay to avoid unseless consecutive changes). Recommanded for ondevice check or very efficient network check
    • onSendOnly: the check is only done when the used presses the send button. Recommanded option if the check take times

    Declaration

    Swift

    public enum EPInputValidator
  • Defines a validation condition.

    • isEmail: check that the text is an email.
    • isNotEmpty: check that the text is not empty.
    • isPhone: check the text is a valid internationnal number.
    • asyncCheck: This can be used to perform custom check in a asynchronious manner. You must perform the check and provide a completion. If the validation failed you will provide the completion handler with nil errorMessage message, else you will provide a dedicated errorMessage.

    Declaration

    Swift

    public enum EPValidationCondition
  • An enum representing the message content type.

    Declaration

    Swift

    public enum EPMessageContent
  • Determines the method that will be used to fetch a bot.

    • online: Downloads the latest available version of the bot from the Bot Editor.
    • offline: Load the bot from a json file embedded into the app bundle.
    • onlineWithDefault: Downloads the latest available version of the bot from the Bot Editor. In case of error, it will load the bot from a json file embedded into the app bundle.
    See more

    Declaration

    Swift

    public enum EPBotFetchingStrategy
  • Represents the input layout mode.

    • fixeSizeKeyboard: the input component will have a fixed size.
    • multipleSizePulley: the input component will have multiple sizes: the user can make it small, medium or nearly fullscreen.
    • fullScreen: the input component will be displayed fullscreen.

    Declaration

    Swift

    public enum EPInputLayoutMode
  • Represents a response for the input options external fetching.

    • default: bot provided options (already included in the bot from the Bot Editor).
    • customInputOptions: list of custom input options.
    • customInputOptionsError: input options fetching error.

    Declaration

    Swift

    public enum EPWorkflowManagerDataSourceResponse
  • Represents a response for the asynchronous task running.

    • default: the asynchronous task message will be displayed as defined in the bot.
    • custom: custom message content to update the displayed message. You can also provide context objects to update the chat conversation context.
    • error: asynchronous task running error.

    Declaration

    Swift

    public enum EPWorkflowManagerAsyncTaskResponse
  • Represents the value type of an input option externally fetched.

    • string: The associated value is a string.
    • boolean: The associated value is a boolean.

    Declaration

    Swift

    public enum EPInputOptionItemValueType