The main class protocol that is used to interact with an active chat session.
More...
#import <BCChatSession.h>
The main class protocol that is used to interact with an active chat session.
The chat session is for performing the actual chat session. It is created by BCAccount through calling BCAccount::createChatSessionWithDelegate:language: and BCAccount::createChatSessionWithDelegate:language:visitorId:skipPreChat:externalParams:. The working chat session is returned through BCCreateChatSessionDelegate callbacks.
It holds the pre, post and unavailable chat forms, and has an interface for their submissions. Moreover it has calls for requesting chat transcript in email and change language. There is also a delegate for chat recovery.
- Since
- Version 1.0
Request to change the current language. It changes the value of the brandings dictionary when finished and successful.
- Parameters
-
languageString | The language string. This parameter must be an ISO 639-1 language code optionally followed by a dash then an ISO 3166-1 country code (en-US). If a language code is passed that is not recognized or supported en-US strings will be returned instead. |
changeLanguageDelegate | The delegate to call back the result. |
- Returns
- BCCancelable to be able to cancel the request.
- Since
- Version 1.0
Requests to send the transcript of the chat the given email address, when the chat ended.
- Parameters
-
emailAddress | The email address to send the transcript to. |
emailChatHistoryDelegate | The delegate to call back the result. |
- Returns
- BCCancelable to be able to cancel the request.
- Since
- Version 1.0
- (void) finishChatSession |
|
|
|
Stop and finish of the current session. It can be called any time to cancel and close the session. There are no calls on the delegate after this call.
- Since
- Version 1.0
Resumes the suspended session. It needs to be called if the application resumes from background state.
- Since
- Version 1.0
Submit the answers for the post chat form.
- Parameters
-
postChatForm | The form with the answers. |
submitPostChatDelegate | The delegate to call back the result. |
- Returns
- BCCancelable to be able to cancel the request.
- Since
- Version 1.0
Submit the answers for the pre chat form.
- Parameters
-
preChatForm | The form with the answers. |
submitPreChatDelegate | The delegate to call back the result. |
- Returns
- BCCancelable to be able to cancel the request.
- Since
- Version 1.0
Submit the answers for the unavailable chat form.
- Parameters
-
unavailableForm | The form with the answers. |
submitUnavailableEmailDelegate | The delegate to call back the result. |
- Returns
- BCCancelable to be able to cancel the request.
- Since
- Version 1.0
Suspends the current session. It needs to be called when the application goes to background.
- Since
- Version 1.0
- (NSDictionary*) branding |
|
readnonatomiccopy |
A dictionary that contains the localized strings for the current set language.
- Since
- Version 1.0
The chat instance for sending and receiving chat messages. It is set only when the chat is available.
- Since
- Version 1.0
The chat key of the current chat session. It gets a valid value, when the chat is created.
- Since
- Version 1.0
While the user fills the unavailable chat form, an operator can become active. This delegate is used to be notifed on this event.
- Since
- Version 1.0
- (NSString*) departmentId |
|
readnonatomiccopy |
The Department ID.
- Since
- Version 1.0
- (BCChatEndReason) endReason |
|
readnonatomicassign |
The end reason of the chat if the chat ended.
- Since
- Version 1.0
Current language string.
It is an ISO 639-1 language code optionally followed by a dash then an ISO 3166-1 country code (en-US). If not set, the application's current language is going to be set.
- Since
- Version 1.0
The post chat form for the current chat session. It is filled after the chat ended.
- Since
- Version 1.0
The pre-chat form for the current chat session. It is filled on chat creation if there is pre-chat defined for the chat.
- Since
- Version 1.0
- (BOOL) recaptureAvailable |
|
readnonatomicassign |
If the visitor was shown the unavailable chat form, this value shows if an operator became available meanwhile.
- Since
- Version 1.0
The unavailable chat form. It is filled only when it is needed to be displayed.
- Since
- Version 1.0
- (NSString*) unavailableMessage |
|
readnonatomicassign |
If the chat is unavailable it has the textural description of unavailability.
- Since
- Version 1.0
- (BCUnavailableReason) unavailableReason |
|
readnonatomicassign |
If the chat is unavailable, this value shows the cause of unavailability.
- Since
- Version 1.0
The person object of the current visitor. It is autogenerated with the visitorId given on creation.
- Since
- Version 1.0
The documentation for this protocol was generated from the following file: