SCSChatDelegate
@protocol SCSChatDelegate <NSObject>
                The SCSChatDelegate protocol provides information about the Live Agent Chat 
session.
See
SCSChat
- 
                  
                  
Delegate method invoked when the Live Agent Chat session state changes.
See
SCSChatDeclaration
Objective-C
- (void)chat:(SCSChat *)chat stateDidChange:(SCSChatSessionState)current previous:(SCSChatSessionState)previous;Swift
optional func chat(_ chat: SCSChat!, stateDidChange current: SCSChatSessionState, previous: SCSChatSessionState)Parameters
chatSCSChatinstance which invoked the method.currentThe new
SCSChatSessionStatewhich has been set on the for the Live Agent Chat session.previousThe previous
SCSChatSessionState. - 
                  
                  
Declaration
Objective-C
- (void)chat:(SCSChat *)chat didEndWithReason:(SCSChatEndReason)reason error:(NSError *)error;Swift
optional func chat(_ chat: SCSChat!, didEndWith reason: SCSChatEndReason, error: Error!)Parameters
chatSCSChatinstance which invoked the method.reasonSCSChatEndReasondescribing why the session has ended.errorNSErrorinstance describing the error. Error codes can be referenced fromSCSChatErrorCode. - 
                  
                  
Delegate method invoked if an error is raised during a Live Agent Chat session.
See
SCSChatDeclaration
Objective-C
- (void)chat:(SCSChat *)chat didError:(NSError *)error;Swift
optional func chat(_ chat: SCSChat!, didError error: Error!)Parameters
chatSCSChatinstance which invoked the error.errorNSErrorinstance describing the error. Error codes can be referenced fromSCSChatErrorCode. - 
                  
                  
Delegate method invoked when the Live Agent Session moves in the agent queue.
See
Declaration
Objective-C
- (void)chat:(SCSChat *)chat didUpdateQueuePosition:(NSNumber *)position;Swift
optional func chat(_ chat: SCSChat!, didUpdateQueuePosition position: NSNumber!)Parameters
chatSCSChatinstance which invoked the method.positionNSNumberinstance representing position in the queue. 
            Install in Dash
          
      SCSChatDelegate Protocol Reference