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.

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.