This site has been permanently archived. The content on this site was last updated in 2019.
GvrApi.ViewerType
Constants that represent possible GVR viewer types.
Constants
int |
CARDBOARD |
A Cardboard-compatible viewer. |
int |
DAYDREAM |
A Daydream-compatible viewer. |
Inherited Methods
From class
java.lang.Object
boolean
|
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
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
()
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[null,null,["Last updated 2024-10-09 UTC."],[[["`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."]]],["The `GvrApi.ViewerType` class defines constants for VR viewer types: `CARDBOARD` (value 0) and `DAYDREAM` (value 1). `CARDBOARD` represents a viewer with touchscreen input, and it is the default if no viewer is paired. `DAYDREAM` supports 3DoF controller input and is for Daydream-ready platforms, without touchscreen support by default. The class also has a public constructor `GvrApi.ViewerType()` and inherits methods from `java.lang.Object`.\n"]]