Classes
The following classes are available globally.
-
Entry point of the CXone Chat SDK and the canonical conformer of
ChatProvider.Construct one
CXoneChatinstance at app start withinit()and hold the reference for the lifetime of your chat experience. Pass it through your app as the protocol typeChatProviderto keep code testable. Use the provider properties (connection,customer,threads,analytics,customerCustomFields,proactiveAction) to drive the SDK; subscribe toevents()for state changes, thread updates, and errors.CXoneChatis@MainActor-isolated — call sites from background contexts must hop to the main actor (see theChatProviderprotocol docs and the Migration Guide for details).See moreImportant
Earlier SDK versions exposed
CXoneChat.sharedandCXoneChatDelegate. Both are removed. See migration-from-singleton.md for the upgrade walkthrough.Declaration
Swift
@MainActor public final class CXoneChat : ChatProvider
View on GitHub
Classes Reference