SCSChat

@interface SCSChat : NSObject

The SCSChat class is the core interface to the chat SDK. This object manages the flow of chat sessions throughout the lifetime of the app. For UI-related chat functionality, see SCSChatInterface.

To get an instance of this class, use the SCServiceCloud.chatCore property on +[SCServiceCloud sharedInstance].

SCSChat conforms to a multicast delegate model for messaging. Any class that implements the SCSChatSessionDelegate protocol can be added to a list of delegates to receive session-related messages asynchronously using -addDelegate: Any class that implements the SCSChatEventDelegate protocol can be added to a list of delegates to receive general event messages asynchronously using -addEventDelegate:

  • Notification identifier that is prepended to all push and local notifications generated by chat session. This can be used to differentiate notifications generated by chat from those generated by the host application.

    Declaration

    Objective-C

    + (NSString *)notificationIdentifier;

    Swift

    class func notificationIdentifier() -> String!
  • A reference to the SCSChatConfiguration object provided to the session on start.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) SCSChatConfiguration *configuration;

    Swift

    var configuration: SCSChatConfiguration! { get }
  • A reference to a chat session, which provides realtime information about the current state of the chat session.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        NSObject<SCSChatSession, SCSChatSessionInfo> *session;