build
Builds the ChatController and starts loading the chat session for the given account.
The chat UI androidx.fragment.app.Fragment is delivered asynchronously through loadListener's onComplete(ChatLoadResponse) callback once configuration has been fetched. If configuration fails, the ChatLoadResponse carries an NRError instead of a fragment.
Return
The created ChatController instance.
Parameters
account
The account configuration. For Messenger, pass a configured com.genesys.cloud.integration.messenger.MessengerAccount.
load Listener
Callback invoked with the chat fragment (or an error) once the chat is ready to be presented. Optional; when omitted, the host can still observe state changes via the registered ChatEventListener.