Enumerations
The following enumerations are available globally.
-
Supported proactive action types.
See moreDeclaration
Swift
public enum ActionType : String, Codable -
The different types of elements that can be present in the content of a dynamic pre-chat survey.
Each type represents different UI element which is necessary to implement in the integration application. Also, each element contains attribute
isRequiredwhich determines if it is necessary pass filled values with methodset(_:for:).See moreWarning
IfChannelConfigurationcontains some pre-chat survey elements and application did not pass then with methodset(_:for:)SDK throws anmissingPreChatCustomFields.Declaration
Swift
public enum CustomFieldType : Equatable -
The different types of elements of message content.
See moreDeclaration
Swift
public enum MessageContentType -
The direction that the message is being sent in regards to an agent.
See moreDeclaration
Swift
public enum MessageDirection -
Representation of the delivery and read status of a chat message
This enum is designed for categorizing the status of chat messages, providing information about whether a message has been sent, delivered, or seen by the recipient. It is valuable for tracking and displaying the communication status in messaging and chat applications.
See moreDeclaration
Swift
public enum MessageStatus -
The different types of elements that can be present in the content of a rich message.
See moreDeclaration
Swift
public enum MessageSubElementType -
The different types of data on a visitor event.
See moreDeclaration
Swift
public enum VisitorEventDataTypeextension VisitorEventDataType: Encodable -
The different types of errors that may be experienced.
See moreDeclaration
Swift
public enum CXoneChatError : LocalizedError, Equatable -
Enum representing different modes for chat functionality.
This enum defines various modes for chat operations, allowing customization based on specific use cases.
See moreMode Description singlethreadIndicates a single-threaded chat mode. multithreadIndicates a multi-threaded chat mode. liveChatIndicates a live chat mode. Declaration
Swift
public enum ChatMode -
State of the chat
Here is a table of states with their basic description. Those states are internally handled by the SDK based on its usage.
See moreState Description initialInitial state of the SDK preparingThe SDK is preparing for usage preparedThe SDK has been prepared for basic usage = unable to use chat features!. offlineChannel currently unavailable (only for live chat channel configuration). connectingSocket connection is establishing for chat usage connectedSocket connection has been established readyChat is ready to use based on it’s configuration status closedAn agent or customer has closed the thread Declaration
Swift
public enum ChatState : Comparable -
Enum representing the possible states of a chat thread.
State Description pendingThread has been created locally. receivedThread has been received from the server (not yet loaded). loadedThread has been loaded (not yet recovered). readyThread has been prepared to use (loaded metadata and recovered all messages). closedThread has been archived or closed. Each case corresponds to a specific state of the chat thread, providing clarity on its current status.
See moreDeclaration
Swift
public enum ChatThreadState : Comparable -
describes the details of data attached to a
See moreContentDescriptorDeclaration
Swift
public enum ContentDescriptorSourceextension ContentDescriptorSource: CustomStringConvertible -
The environment used for CXone.
See moreDeclaration
Swift
public enum Environment : String, CaseIterable, EnvironmentDetails, Codable
View on GitHub
Enumerations Reference