Commands
Commands are instructions issued by the page to the Display JavaScript API. Commands can be invoked by calling magic methods, which can be accessed directly from the API instance.
Overview
// Example 1 if (window.iPaperDisplayApi) { window.iPaperDisplayApi.show(); } // Example 2 window.iPaperDisplayApi && window.iPaperDisplayApi.show();document.addEventListener('iPaperDisplayApiReady', function () { // At the point in time, window.iPaperDisplayApi is available in the global scope window.iPaperDisplayApi.show(); });
Display instance
show
show1. Showing a Display instance associated with a URL
2. Showing an arbitrary Display instance
hide
hideDisplay call-to-action button
showButton
showButton1. Showing a Display call-to-action button associated with a URL
2. Showing an arbitrary Display call-to-action button
hideButton
hideButtonLast updated