November 6, 2019 update:
  • There's a new open source Cardboard SDK for iOS and Android NDK that offers a streamlined API, improved device compatibility, and built-in viewer profile QR code scanning. A corresponding Unity package (SDK) is planned for a future release. We recommend that all developers actively building for Google Cardboard migrate (iOS, Android NDK) to the new Cardboard SDK.
October 15, 2019 update:
  • The Daydream View VR headset is no longer available for purchase. However, you can continue to use the existing Google VR SDK to update and distribute your apps to the Google Play Store, and make them available to users in the Daydream app.

HeadMountedDisplay

public class HeadMountedDisplay

Encapsulates the parameters describing a head mounted stereoscopic display composed of a screen and a GVR-compatible viewer holding it.

Public Constructors

HeadMountedDisplay(ScreenParams screenParams, GvrViewerParams gvrViewerParams)
Creates a new head mounted display object with the provided objects.
HeadMountedDisplay(HeadMountedDisplay hmd)
Creates a new head mounted display object by copying the contents of another.

Public Methods

boolean
equals(Object other)
Compares this instance with the specified object and indicates if they are equal.
GvrViewerParams
getGvrViewerParams()
Returns the parameters describing the GVR viewer.
ScreenParams
getScreenParams()
Returns the parameters describing the screen.

Inherited Methods

Public Constructors

public HeadMountedDisplay (ScreenParams screenParams, GvrViewerParams gvrViewerParams)

Creates a new head mounted display object with the provided objects.

Parameters
screenParams Screen params to use.
gvrViewerParams GVR viewer params to use.

public HeadMountedDisplay (HeadMountedDisplay hmd)

Creates a new head mounted display object by copying the contents of another.

Parameters
hmd Head mounted display object to copy from.

Public Methods

public boolean equals (Object other)

Compares this instance with the specified object and indicates if they are equal.

Parameters
other The object to compare this instance with.
Returns
  • true if the objects are equal, false otherwise.

public GvrViewerParams getGvrViewerParams ()

Returns the parameters describing the GVR viewer.

Returns
  • The parameters describing the GVR viewer.

public ScreenParams getScreenParams ()

Returns the parameters describing the screen.

Returns
  • The parameters describing the screen.