Package 

Interface VR

  • All Implemented Interfaces:
    com.theoplayer.android.api.event.EventDispatcher

    
    public interface VR
     implements EventDispatcher<VREvent>
                        

    The VR API.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class com.theoplayer.android.api.event.EventDispatcher

        addEventListener, removeEventListener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.
      • 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.