.addEventListener()
The Mobilisten React-Native SDK provides various events that developers can use to perform customized actions.
Supported events:
Event | Invoked when |
EVENT.SUPPORT_OPENED | the user opens the SDK |
EVENT.SUPPORT_CLOSED | the user closes the SDK |
EVENT.CHATVIEW_OPENED | a chat window is opened |
EVENT.CHATVIEW_CLOSED | a chat window is closed |
EVENT.CHAT_OPENED | a chat is initiated |
EVENT.CHAT_CLOSED | a chat is ended |
EVENT.CHAT_MISSED | a chat is missed |
EVENT.CHAT_ATTENDED | a chat is picked up |
EVENT.CHAT_REOPENED | a chat is reopened |
EVENT.CHAT_QUEUE_POSITION_CHANGED | the position in the queue of a queued chat changes |
EVENT.ARTICLE_OPENED (Deprecated) | an article is opened |
EVENT.ARTICLE_CLOSED (Deprecated) | an article is closed |
EVENT.ARTICLE_LIKED (Deprecated) | an article is liked |
EVENT.ARTICLE_DISLIKED (Deprecated) | an article is disliked |
EVENT.RESOURCE_OPENED | a resource is opened |
EVENT.RESOURCE_CLOSED | a resource is closed |
EVENT.RESOURCE_LIKED | a resource is liked |
EVENT.RESOURCE_DISLIKED | a resource is disliked |
EVENT.OPERATORS_ONLINE | operators or bots are available |
EVENT.OPERATORS_OFFLINE | all operators are offline |
EVENT.VISITOR_IPBLOCKED | visitor is IP Blocked |
EVENT.FEEDBACK_RECEIVED | visitor provides feedback for a chat |
EVENT.RATING_RECEIVED | visitor rates a chat |
EVENT.PERFORM_CHATACTION | a chat action is to be executed. Learn More |
EVENT.CUSTOMTRIGGER | A custom trigger is to be executed. Learn More. |
EVENT.HANDLE_URL | a URL in the chat is clicked |
EVENT.HANDLE_CUSTOM_LAUNCHER_VISIBILITY | Show/hide your custom launcher with the triggered boolean value |
Usage
Copied