Setting up the BoldChatViewController Interface
There are three groups of settings that need to be set when creating of the view controller.
Language
Setting the language is optional. If it is not set, the current application language is tried to be used. If it fails, it rolls back to en-US. If set, the language 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.
Account Settings
An instance of BoldChatAccountSettings must be added to the view controller at setup. It has the following properties:
- account: BCAccount instance with the access key. The creation of it is detailed in Core-level SDK Integration
- visitorId: If customer following is implemented the id of the customer can be given here. Core-level SDK Integration
- skipPreChat: If YES, pre-chat is skipped. Core-level SDK Integration
- extraParams: The values for pre and post chat forms can be set here. Core-level SDK Integration
View Settings
UI customization is implemented as view settings. See BoldChatViewController Customization for details.