GUI_State
Connection callback that is called when RxView360 experiences a state change. This currently applies to file load and page change. (For page change, use the GUI_Page callback).
Callback Parameters
- stateobj: Object containing state attributes.
JavaScript
stateobj = {
isPDF: Boolean; // true if the file is a PDF
is3D: Boolean; // true if the file is a 3D model
is2D: Boolean; // true if the file is a 2D document
numpages: number; // Total number of pages
currentpage: number; // Currently active page
}
Example:
RxCore.GUI_State.connect(function (stateobj) {
console.log("file has ", stateobj.numpages, " pages");
});