Classes
The following classes are available globally.
- 
                    
                    
This class is the standard implementation of
See moreMessagingPublisherfor connecting to a bot of the CAI platform via the Channel Connector.Declaration
Swift
public final class CAIConversation : MessagingPublisher - 
                    
                    
Handles Long Polling mechanism to CAI Channel Connector to load messages
See moreDeclaration
Swift
public class PollMessageDelivery : MessageDelivering - 
                    
                    
This class allows you to communicate with all CAI channel-related HTTP APIs It implements ObservableObject to allow you to bind this object from your SwiftUI views
See moreDeclaration
Swift
public final class CAIChannelService : ObservableObject - 
                    
                    
Implements ObservableObject, Identifiable protocols. Manages available theme and current active one.
Singleton class, call
See moreThemeManager.sharedto retrieve it. You can set the active theme by callingThemeManager.shared.setCurrentTheme(CAITheme)Declaration
Swift
public final class ThemeManager : ObservableObject, Identifiable - 
                    
                    
Undocumented
See moreDeclaration
Swift
public final class MockPublisher : MessagingPublisher - 
                    
                    
MessagingViewModel is the key object that sits between the UI and the Model It is a mandatory
EnvironmentObjectconsumed byAssistantViewIt implements
See moreBindableObjectprotocol which allows you to directly bind public properties from your SwiftUI viewDeclaration
Swift
public final class MessagingViewModel : ObservableObject, Identifiable - 
                    
                    
The data model for the typing indicator SwiftUI view
See moreTypingIndicatorView. Implements ObservableObject protocol.Declaration
Swift
public final class TypingIndicatorData : ObservableObject, Identifiable - 
                    
                    
This class is meant to be used by UIKit like a standard UIViewController. It will host the SwiftUI
AssistantViewwith default parameters.Do not use this class if you are using SwiftUI in your project, it is recommended to directly work with AssistantView. Do not use with Storyboards.
See morelet publisher = <#some MessagingPublisher#> let vc = MessagingViewController(MessagingViewModel(publisher: publisher)) self.navigationController?.pushViewController(vc, animated: true)Declaration
Swift
open class MessagingViewController : UIHostingController<MessagingView>