EPBotFetchingStrategy
public enum EPBotFetchingStrategy
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.
-
Downloads the latest available version of the bot from the Bot Editor.
majorVersion: The bot major version. Used to fetch only the bot updates matching this major version. (optional)
Declaration
Swift
case online(majorVersion: Int?) -
Load the bot from a json file embedded into the app bundle.
fileName: The bot json file name. This file must be added to your project.
Declaration
Swift
case offline(fileName: String) -
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.
majorVersion: The bot major version. Used to fetch only the bot updates matching this major version. (optional)fileName: The bot json file name. This file must be added to your project.
Declaration
Swift
case onlineWithDefault(majorVersion: Int?, fileName: String)
EPBotFetchingStrategy Enumeration Reference