Packagecom.myflashlab.air.extensions.googleVR
Classpublic class VRApi
InheritanceVRApi Inheritance flash.events.EventDispatcher

This class will let you access different VR APIs supported by this ANE. Access this class like VR.api.



Public Properties
 PropertyDefined By
  displayMode : int
Programmatically updates the DisplayMode of the VR View to simulate pressing one of the UI buttons.
VRApi
  headRotation : Array
[read-only] Provides yaw and pitch angles corresponding to where the user is looking.
VRApi
  imageView : ApiImgView
[read-only] Access to the VR imageView API
VRApi
  videoView : ApiVideoView
[read-only] Access to the VR videoView API
VRApi
Property Detail
displayModeproperty
displayMode:int

Programmatically updates the DisplayMode of the VR View to simulate pressing one of the UI buttons. If the getter returns -1, it means that the vr view is not accessible.


Implementation
    public function get displayMode():int
    public function set displayMode(value:int):void
headRotationproperty 
headRotation:Array  [read-only]

Provides yaw and pitch angles corresponding to where the user is looking. yaw is the rotation along the vertical (y) axis. Values are in the [-180, 180] range with:

pitch is the rotation along the right (x) axis previously rotated by yaw. Values are in the [-90, 90] range with:

When pitch approaches 90 or -90, yaw values are reset to zero as computing the yaw values becomes numerically unstable.


Implementation
    public function get headRotation():Array
imageViewproperty 
imageView:ApiImgView  [read-only]

Access to the VR imageView API


Implementation
    public function get imageView():ApiImgView
videoViewproperty 
videoView:ApiVideoView  [read-only]

Access to the VR videoView API


Implementation
    public function get videoView():ApiVideoView