SCSChatDelegate Protocol Reference

Conforms to NSObject
Declared in SCSChatDelegate.h

Overview

The SCSChatDelegate protocol provides information about the Live Agent Chat session.

– chat:stateDidChange:previous:

Delegate method invoked when the Live Agent Chat session state changes.

- (void)chat:(SCSChat *)chat stateDidChange:(SCSChatSessionState)current previous:(SCSChatSessionState)previous

Parameters

chat

SCSChat instance which invoked the method.

current

The new SCSChatSessionState which has been set on the for the Live Agent Chat session.

previous

The previous SCSChatSessionState.

Declared In

SCSChatDelegate.h

– chat:didEndWithReason:error:

Delegate method invoked when a Live Agent Session Ends.

- (void)chat:(SCSChat *)chat didEndWithReason:(SCSChatEndReason)reason error:(NSError *)error

Parameters

chat

SCSChat instance which invoked the method.

reason

SCSChatEndReason describing why the session has ended.

error

NSError instance describing the error. Error codes can be referenced from SCSChatErrorCode.

Declared In

SCSChatDelegate.h

– chat:didError:

Delegate method invoked if an error is raised during a Live Agent Chat session.

- (void)chat:(SCSChat *)chat didError:(NSError *)error

Parameters

chat

SCSChat instance which invoked the error.

error

NSError instance describing the error. Error codes can be referenced from SCSChatErrorCode.

Declared In

SCSChatDelegate.h

– chat:didUpdateQueuePosition:

Delegate method invoked when the Live Agent Session moves in the agent queue.

- (void)chat:(SCSChat *)chat didUpdateQueuePosition:(NSNumber *)position

Parameters

chat

SCSChat instance which invoked the method.

position

NSNumber instance representing position in the queue.

Declared In

SCSChatDelegate.h