Events
Display JavaScript API emits custom events that can be listened to on the document root
Overview
iPaperDisplayApiReady
iPaperDisplayApiReadydocument.addEventListener('iPaperDisplayApiReady', function () {
// At this point in time, window.iPaperDisplayApi is available in the global scope
window.iPaperDisplayApi.show();
});iPaperDisplayInstanceReady
iPaperDisplayInstanceReadydocument.addEventListener('iPaperDisplayInstanceReady', function () {
// At this point in time, the Display Instance is ready to be interacted with
});Last updated