new Enclosure()
Represents an app enclosure in AltspaceVR. The enclosure should be retrieved via altspace.getEnclosure.
Members
(readonly) fullspace :Boolean
Whether the enclosure is in fullspace mode.
(readonly) hasFocus :Boolean
Whether the user has focused the enclosure.
(readonly) innerDepth :Number
The depth of the enclosure in pixels.
(readonly) innerHeight :Number
The height of the enclosure in pixels.
(readonly) innerWidth :Number
The width of the enclosure in pixels.
(readonly) pixelsPerMeter :Number
The ratio of pixels to meters.
Methods
exitFullspace() → {Promise}
Exits fullspace mode.
requestFullspace() → {Promise}
Requests fullspace mode for this enclosure. The returned promise might be rejected if the app doesn't have fullspace permissions (although that should rarely be the case).