| Package | com.myflashlab.air.extensions.googleVR |
| Class | public class VRApi |
| Inheritance | VRApi flash.events.EventDispatcher |
VR.api.
| Property | Defined 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 | ||
| displayMode | property |
displayMode:intProgrammatically 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.
public function get displayMode():int public function set displayMode(value:int):void| headRotation | property |
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.
public function get headRotation():Array| imageView | property |
imageView:ApiImgView [read-only] Access to the VR imageView API
public function get imageView():ApiImgView| videoView | property |
videoView:ApiVideoView [read-only] Access to the VR videoView API
public function get videoView():ApiVideoView