api.box.onHide
Whenever the chatbox is hidden, the given callback will be triggered.
Examples
When the box is hidden, maybe you would like to notify the operator that the visitor has hidden the box after starting a conversation:
olark('api.chat.onConversationBegin', function(){
olark('api.box.onHide', function() {
olark('api.chat.sendNotificationToOperator', {body: "visitor hid the chatbox"})
})
})
Discussion
Feel free to propose good uses for this method, or even drop us some suggestions for improvement! You can also join our mailing list to collaborate with other developers and get updates from us.