This site has been archived and remains strictly as a historical reference for developers who actively maintain apps built using the legacy Google VR SDK, which was last updated in 2019 and is no longer receiving updates.
  • All developers actively developing experiences for Google Cardboard should use the new open source Cardboard SDKs for iOS, Android NDK, and Unity XR Plugin. These new SDKs offer streamlined APIs, improved device compatibility, and built-in viewer profile QR code scanning.
  • The Daydream View VR headset is no longer available for purchase as of October 15, 2019. Existing apps on supported devices are unaffected for users who previously installed those applications. It is no longer possible to opt-in to Daydream distribution via Google Play.

com.google.vr.sdk.base

Code for the foundation of the Google VR API.

Interfaces

GvrView.Renderer Interface for renderers who need to handle all the stereo rendering details by themselves. 
GvrView.StereoRenderer Interface for renderers that delegate all stereoscopic rendering details to the view. 

Classes

AndroidCompat Utility class for using VR-related features that may not be available with all Android versions. 
Constants Static class containing useful constants. 
Distortion Defines all required parameters to correct the distortion caused by the lenses. 
Eye Describes the stereoscopic rendering details of an eye. 
Eye.Type Defines the constants identifying the current eye type. 
FieldOfView Encapsulates a field of view composed of 4 half angles (left, right, bottom, top) as would be passed to glFrustum. 
GvrActivity Base activity that provides easy integration with GVR headsets. 
GvrView A View that supports VR rendering. 
GvrViewerParams Defines the physical parameters of a Google VR viewer. 
HeadMountedDisplay Encapsulates the parameters describing a head mounted stereoscopic display composed of a screen and a GVR-compatible viewer holding it. 
HeadTransform Describes the head transform independently of any eye parameters. 
ScreenParams Defines the physical parameters of a screen to be used with a GVR-compatible viewer. 
Viewport Defines a viewport rectangle. 

Enums

GvrViewerParams.VerticalAlignmentType Enum indicating the strategy for aligning the phone display vertically with respect to center of the lenses.