Zyler triggers events when processing files, to which you can register easily, by calling .on(eventName, callbackFunction) on your instance.

window.onload = function() {
const myZyler = Zyler.init({
partnerId: '{partner-id}' // Replace {partner-id} with your own partner ID.
myZyler.on('visualisationEnded', function() {
/* Maybe display some social sharing buttons */

Event List

visualisationStartedWhen a request to visualise an outfit to the server has been sent
visualisationEndedWhen the request from the server has returned
modalOpenedWhen the modal tray has opened
modalClosedWhen the modal tray has closed
gatewayOpenedWhen the gateway window has opened
gatewayClosedWhen the gateway window has closed