Get slide index or visibility state of PowerPoint content addin (Office.js)
I'm writing a PowerPoint content addin using Office.js API. I need a way for each instance of that addin to determine the index of the containing slide, or, if this is impossible, the visibility state of the addin (i.e. whether the containing slide is currently visible on screen). The documentation suggests no API specifically intended for this purpose, so I've been using the following method: Upon addin initialization (inside Document.initialize callback), request currently selected slide using Document.getSelectedDataAsync method. Since addin cannot be initialized until it is visible, we can