-
- All Implemented Interfaces:
-
com.theoplayer.android.api.event.EventDispatcher
public interface VR implements EventDispatcher<VREvent>
The VR API.
-
-
Method Summary
Modifier and Type Method Description abstract boolean
getStereo()
Whether stereo mode is enabled. abstract void
setStereo(boolean value)
Sets whether stereo mode is enabled. abstract VRDirection
getDirection()
The viewing direction. abstract void
setDirection(@NonNull() VRDirection value)
Sets the current viewing direction. abstract double
getVerticalFOV()
The vertical field of view. abstract void
setVerticalFOV(double value)
Sets the vertical field of view. abstract VRState
getState()
The current state. -
-
Method Detail
-
getStereo
abstract boolean getStereo()
Whether stereo mode is enabled.
- Stereo mode, also known as cardboard mode will result in an illusion of multi-directional audible perspective.
-
setStereo
abstract void setStereo(boolean value)
Sets whether stereo mode is enabled.
- Stereo mode, also known as cardboard mode will result in an illusion of multi-directional audible perspective.
-
getDirection
@NonNull() abstract VRDirection getDirection()
The viewing direction.
- A viewing direction is specified by a VRDirection.
-
setDirection
abstract void setDirection(@NonNull() VRDirection value)
Sets the current viewing direction.
- Parameters:
value
- The new VRDirection, the viewing direction.
-
getVerticalFOV
abstract double getVerticalFOV()
The vertical field of view.
- This value can be a degree in the range of [0, 180].
- A larger value corresponds to a more zoomed out effect.
-
setVerticalFOV
abstract void setVerticalFOV(double value)
Sets the vertical field of view.
- This value can be a degree in the range of [0, 180].
- A larger value corresponds to a more zoomed out effect.
- Parameters:
value
- The new vertical field of view.
-
-
-
-