GvrApi.ViewerType

  • GvrApi.ViewerType defines constants representing supported VR viewer types, namely CARDBOARD and DAYDREAM.

  • CARDBOARD represents viewers with basic touchscreen input, often used as the default if no specific viewer is paired.

  • DAYDREAM represents viewers with 3DoF controller input, designed for Daydream-ready platforms and generally lacking touchscreen input unless Cardboard emulation is enabled.

public static abstract class GvrApi.ViewerType

Constants that represent possible GVR viewer types.

Constants

int CARDBOARD A Cardboard-compatible viewer.
int DAYDREAM A Daydream-compatible viewer.

Public Constructors

Inherited Methods

Constants

public static final int CARDBOARD

A Cardboard-compatible viewer. A typical Cardboard viewer supports a simple touchscreen-based trigger input mechanism. On most platforms, this is the default viewer type if no viewer has been explicitly paired.

Constant Value: 0

public static final int DAYDREAM

A Daydream-compatible viewer. A typical Daydream viewer supports 3DoF controller input (as defined in gvr_controller.h), and is intended only for Daydream-ready platforms. It does *not* support touchscreen-based input unless Cardboard emulation is explicitly enabled.

Constant Value: 1

Public Constructors

public GvrApi.ViewerType ()