BoldChatViewController.h
27 - (void)boldChatViewControllerChatSessionDidStart:(BoldChatViewController *)boldChatViewController visitorId:(NSString *)visitorId language:(NSString *)language;
34 - (void)boldChatViewControllerChatSessionDidFinish:(BoldChatViewController *)boldChatViewController;
57 - (void)boldChatViewController:(BoldChatViewController *)boldChatViewController chatMessageDidArrive:(BCMessage *)message;
65 - (void)boldChatViewController:(BoldChatViewController *)boldChatViewController chatAutoMessageDidArrive:(BCMessage *)message;
74 - (void)boldChatViewController:(BoldChatViewController *)boldChatViewController operatorTyping:(BOOL)typing;
83 - (void)boldChatViewController:(BoldChatViewController *)boldChatViewController didChangeLanguageTo:(NSString *)language branding:(NSDictionary *)branding;
92 - (void)boldChatViewController:(BoldChatViewController *)boldChatViewController didFailWithError:(NSError *)error;
107 - (void)boldChatViewControllerFormExternalActionPressed:(BoldChatViewController *)boldChatViewController;
114 - (void)boldChatViewControllerChatExternalActionPressed:(BoldChatViewController *)boldChatViewController;
121 - (void)boldChatViewControllerMainExternalActionPressed:(BoldChatViewController *)boldChatViewController;
128 - (void)boldChatViewControllerErrorExternalActionPressed:(BoldChatViewController *)boldChatViewController;
135 - (void)boldChatViewControllerEndExternalActionPressed:(BoldChatViewController *)boldChatViewController;
282 - (id)initWithAccountSettings:(BoldChatAccountSettings *)accountSettings viewSettings:(BoldChatViewSettings *)viewSettings language:(NSString *)language;
291 - (void)configureWithAccountSettings:(BoldChatAccountSettings *)accountSettings viewSettings:(BoldChatViewSettings *)viewSettings language:(NSString *)language;
BOOL handlesApplicationLifecycle
If YES it handles the application going background and foreground events. Default: YES...
Definition: BoldChatViewController.h:190
NSString * language
The language of the chat.
Definition: BoldChatViewController.h:178
UIButton * mainExternalActionButton
The mainExternalAction button.
Definition: BoldChatViewController.h:257
void resignContainedFirstResponder()
Hides the keyboarded if it is presented by any of the view controller's subviews. ...
IBOutlet UIView * chatHolderView
The view that holds the chat view.
Definition: BoldChatViewController.h:232
IBOutlet UILabel * errorLabel
The error text label.
Definition: BoldChatViewController.h:214
IBOutlet UIView * endView
The end view shown when the chat session ended.
Definition: BoldChatViewController.h:220
id< BoldChatViewControllerDelegate > delegate
The delegate.
Definition: BoldChatViewController.h:153
IBAction submitFormOrEndChat()
Depending on the view state it submits the currently shown pre, post or unavailable chat...
IBOutlet UILabel * endLabel
The end text label.
Definition: BoldChatViewController.h:226
IBOutlet UIView * preChatHolderView
The view that holds the pre chat form.
Definition: BoldChatViewController.h:238
BOOL handleKeyboardEvents
If set the UI changes on keyboard showing/dismissal. Default: YES.
Definition: BoldChatViewController.h:184
id< BoldChatSecureParamsProvision > startWithWaitingForSecureParams()
Starts the chatting with showing the loading view and waiting for secure parameters. If a secure chat is to be started, start it with calling this selector. It shows the loading view while continueWithSecureParams: is not called and the pre chat form or the chat did not arrive.
void resume()
Resume the chat. No need to call if handlesApplicationLifecycle is YES.
A single view controller that implements the whole process of chatting with an operator through BoldC...
Definition: BoldChatViewController.h:147
UIButton * errorExternalActionButton
The errorExternalAction button that can be added ti the error view.
Definition: BoldChatViewController.h:271
BoldChatAccountSettings * accountSettings
The BoldChat account related settings for the chat.
Definition: BoldChatViewController.h:166
UIButton * endExternalActionButton
The endExternalAction button that can be added ti the end view.
Definition: BoldChatViewController.h:264
void start()
Start the chat process. It starts with creating the chat. If the view controller is created and prese...
BoldChatViewSettings * viewSettings
The view customizations.
Definition: BoldChatViewController.h:172
IBAction mainExternalActionButtonPressed()
IBAction for mainExternalActionButton.
IBOutlet UIActivityIndicatorView * loadingActivityIndicator
The loading activity indicator view.
Definition: BoldChatViewController.h:202
IBAction errorExternalActionButtonPressed()
IBAction for errorExternalActionButton.
The delegate of the BoldChatViewController. Lifecycle events of the chat are called back on it...
Definition: BoldChatViewController.h:17
id< BoldChatViewControllerExternalActions > externalEvents
The external event callbacks.
Definition: BoldChatViewController.h:159
IBOutlet UIView * unavailableChatHolderView
The view that holds the unavailable chat form.
Definition: BoldChatViewController.h:250
Protocol for providing secure parameters for creating a chat session. If the BoldChatViewController ...
Definition: BoldChatSecureParamsProvision.h:14
IBOutlet UIView * errorView
The error view shown if there is an error.
Definition: BoldChatViewController.h:208
IBOutlet UIView * postChatHolderView
The view that holds the post chat form.
Definition: BoldChatViewController.h:244
The container class for all information about a specific chat message.
Definition: BCMessage.h:13
Customized callbacks of buttons on BoldChatViewController.
Definition: BoldChatViewController.h:100
void suspend()
Suspend the chat. No need to call if handlesApplicationLifecycle is YES.
IBAction endExternalActionButtonPressed()
IBAction for endExternalActionButton.
IBOutlet UIView * loadingView
The loading view shown as an overlay when there is an ongoing remote request.
Definition: BoldChatViewController.h:196