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
isRequired
which determines if it is necessary pass filled values with methodset(_:for:)
.Warning
IfChannelConfiguration
contains 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 VisitorEventDataType
extension 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.
Mode Description singlethread
Indicates a single-threaded chat mode. multithread
Indicates a multi-threaded chat mode. liveChat
Indicates 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.
State Description initial
Initial state of the SDK preparing
The SDK is preparing for usage prepared
The SDK has been prepared for basic usage = unable to use chat features!. offline
Channel currently unavailable (only for live chat channel configuration). connecting
Socket connection is establishing for chat usage connected
Socket connection has been established ready
Chat is ready to use based on it’s configuration status closed
An agent or customer has closed the thread Declaration
Swift
public enum ChatState : Comparable
-
Enum representing the possible states of a chat thread.
State Description pending
Thread has been created locally. received
Thread has been received from the server (not yet loaded). loaded
Thread has been loaded (not yet recovered). ready
Thread has been prepared to use (loaded metadata and recovered all messages). closed
Thread 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 moreContentDescriptor
Declaration
Swift
public enum ContentDescriptorSource
extension ContentDescriptorSource: CustomStringConvertible
-
The environment used for CXone.
See moreDeclaration
Swift
public enum Environment : String, CaseIterable, EnvironmentDetails, Codable