Z.HeadsetManager

Studio

Z.HeadsetManager

Inherits from Z.Base

Description

The HeadsetManager is responsible for Zappar's support for VR/AR headsets, such as Google Cardboard.

Provided by Z.HeadsetManager

Constructor

Z.HeadsetManager( ) Constructs a new Z.HeadsetManager object.

Events

headsetbutton Emitted when the button has been pressed within headset mode.
headsetenter Emitted when the device has entered headset mode.
headsleave Emitted when the device has left headset mode.

Functions

useHeadset( ) Requests the device to enter headset mode.
usingHeadset( ) Used to determine if the device is currently in headset mode.

Inherited from Z.Base

Functions

emit(...) Calls the handler functions attached to an event.
hasTag(...) Returns true if this object has the specified tag.
off(...) Removes a handler function from an event.
on(...) Attaches a handler function to an event.
one(...) Attaches a single-use handler function to an event.
pushTag(...) Adds a tag to this object.
removeTag(...) Removes a tag from this object.
tags( ) Gets an array of the tags that this object belongs to.
tags(...) Sets the array of the tags that this object belongs to.
Open in new window