SCSChat

@interface SCSChat : NSObject

The SCSChat class is the main interface to the Live Agent Chat SDK. This object manages the flow of Chat sessions throughout the lifetime of the app.

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

SCSChat conforms to a multicast delegate model for messaging. Any class which implements the SCSChatDelegate protocol can be added to a list of delegates to receive messages asynchronously.

For UI-related chat features, see SCSChatInterface.

  • Adds an instance of an NSObject implementing the SCSChatDelegate protocol to the list of delegates to notify.

    Declaration

    Objective-C

    - (void)addDelegate:(NSObject<SCSChatDelegate> *)delegate;

    Parameters

    delegate

    NSObject instance to add.

  • Removes an instance of an NSObject implementing the SCSChatDelegate protocol from the list of delegates to notify.

    Declaration

    Objective-C

    - (void)removeDelegate:(NSObject<SCSChatDelegate> *)delegate;

    Parameters

    delegate

    NSObject instance to remove.