Bold360 and BoldChat Developer Center

<BCChatStateDelegate> Protocol Reference

The delegate that is called back on chat state changes. More...

#import <BCChatStateDelegate.h>

Inheritance diagram for <BCChatStateDelegate>:

Instance Methods

(void) - bcChatDidConnect:
 The chat connected. More...
 
(void) - bcChat:didFinishWithReason:time:postChatForm:
 The chat was finished successfully. More...
 
(void) - bcChat:didFinishWithUnavailableReason:unavailableForm:unavailableMessage:
 The chat was finished successfully. More...
 
(void) - bcChat:didFinishWithError:
 The chat was finished with an error. More...
 

Detailed Description

The delegate that is called back on chat state changes.

Since
Version 1.0

Method Documentation

- (void) bcChat: (id< BCChat >)  chat
didFinishWithError: (NSError *)  error 

The chat was finished with an error.

Parameters
chatThe chat which the callback is originated from.
errorThe error description about the failure. Check error.code with BCErrorCodes.h to get the exact error.
Since
Version 1.0
- (void) bcChat: (id< BCChat >)  chat
didFinishWithReason: (BCChatEndReason)  reason
time: (NSDate *)  time
postChatForm: (BCForm *)  postChatForm 

The chat was finished successfully.

Parameters
chatThe chat which the callback is originated from.
reasonThe reason of the finish.
timeThe time of the chat finish.
postChatFormThe post chat form.
Since
Version 1.0
- (void) bcChat: (id< BCChat >)  chat
didFinishWithUnavailableReason: (BCUnavailableReason)  reason
unavailableForm: (BCForm *)  unavailableForm
unavailableMessage: (NSString *)  message 

The chat was finished successfully.

Parameters
chatThe chat which the callback is originated from.
reasonThe reason of the finish.
unavailableFormThe unavailable form.
messageTextural description of the unavailability.
Since
Version 1.0
- (void) bcChatDidConnect: (id< BCChat >)  chat

The chat connected.

Parameters
chatThe chat which the callback is originated from.
Since
Version 1.0

The documentation for this protocol was generated from the following file: