CXoneChat

public class CXoneChat : ChatProvider, EventReceiver

The implementation of the interface for interacting with chat features of the CXone platform.

Static properties

  • The version of the CXone chat SDK.

    Declaration

    Swift

    public static var version: String
  • The singleton instance of the CXone chat SDK.

    Declaration

    Swift

    public static var shared: ChatProvider

Public properties

  • The handler for the chat events.

    Declaration

    Swift

    @available(*, deprecated, message: "Deprecated with 2.2.0 Please use add(delegate:﹚")
    public weak var delegate: CXoneChatDelegate? { get set }
  • The handler for the logs occured in CXoneChat.

    Declaration

    Swift

    public weak var logDelegate: LogDelegate? { get set }
  • Current chat state of the SDK

    The state defines if the SDK is prepared for API services (analytics), connected for chat features or if it needs to be prepared or connected for proper usage.

    Declaration

    Swift

    public var state: ChatState { get }
  • Chat mode defining available functionality.

    Declaration

    Swift

    public var mode: ChatMode { get }

API providers

Init

Static methods

  • Signs the customer out and disconnects from the CXone service.

    Declaration

    Swift

    public static func signOut()
  • Configures internal logger to be able to detect errors, warnings or even trace chat flow.

    Declaration

    Swift

    public static func configureLogger(level: LogManager.Level, verbosity: LogManager.Verbosity)

    Parameters

    level

    Specifies level of records to be presented in the console. Lower levels are ignored.

    verbository

    Specifies verbosity of information in the log record.