Class SurfaceView360VR

java.lang.Object
android.view.View
android.view.ViewGroup
android.widget.FrameLayout
com.google.vr.sdk.base.GvrView
com.castlabs.sdk.threesixty.SurfaceView360VR
All Implemented Interfaces:
Drawable.Callback, AccessibilityEventSource, KeyEvent.Callback, ViewManager, ViewParent

public class SurfaceView360VR extends com.google.vr.sdk.base.GvrView
A GvrView that can render 360 VR video.
  • Constructor Details

    • SurfaceView360VR

      public SurfaceView360VR(Context context)
      Creates a new SurfaceView360VR.
      Parameters:
      context - The context
    • SurfaceView360VR

      public SurfaceView360VR(Context context, AttributeSet attrs)
      Creates a new SurfaceView360VR.
      Parameters:
      context - The context
      attrs - The attributes
  • Method Details

    • onResume

      public void onResume()
      Overrides:
      onResume in class com.google.vr.sdk.base.GvrView
    • onPause

      public void onPause()
      Overrides:
      onPause in class com.google.vr.sdk.base.GvrView
    • setOrientation

      public void setOrientation(@NonNull com.castlabs.sdk.threesixty.Quaternion q)
      Sets the orientation of the view.
      Parameters:
      q - The quaternion representing the orientation
    • swipeRotate

      public void swipeRotate(double degreeX, double degreeY)
      Rotates the view based on swipe input.
      Parameters:
      degreeX - The rotation in degrees around the X axis
      degreeY - The rotation in degrees around the Y axis