Constants

public class Constants

Static class containing useful constants.

Constants

String CARDBOARD_CATEGORY Apps that use the Google VR SDK and run on Cardboard should include this category (along with action MAIN) in their AndroidManifest.xml.
String DAYDREAM_CATEGORY Apps that use the Google VR SDK and require Daydream should include this category (along with action MAIN) in their AndroidManifest.xml.
String DAYDREAM_CONTROLLER_OPTIONAL_CATEGORY Apps that use the Google VR SDK and support Daydream but can be used without a controller should include this category (along with action MAIN) in their AndroidManifest.xml.
String VERSION The Google VR SDK version.

Inherited Methods

Constants

public static final String CARDBOARD_CATEGORY

Apps that use the Google VR SDK and run on Cardboard should include this category (along with action MAIN) in their AndroidManifest.xml. An Activity tagged with this category will show up in the list of Cardboard apps in the Cardboard launcher. If an app supports both Cardboard and Daydream it should include both intent filters.

Example intent filter:

<intent-filter>
   <action android:name="android.intent.action.MAIN" />
   <category android:name="com.google.intent.category.CARDBOARD" />
 </intent-filter>
 

Constant Value: "com.google.intent.category.CARDBOARD"

public static final String DAYDREAM_CATEGORY

Apps that use the Google VR SDK and require Daydream should include this category (along with action MAIN) in their AndroidManifest.xml. An Activity tagged with this category will show up in the list of Daydream apps in the Daydream launcher. If an app supports both Cardboard and Daydream it should include both intent filters.

Example intent filter:

<intent-filter>
   <action android:name="android.intent.action.MAIN" />
   <category android:name="com.google.intent.category.DAYDREAM" />
 </intent-filter>
 

Constant Value: "com.google.intent.category.DAYDREAM"

public static final String DAYDREAM_CONTROLLER_OPTIONAL_CATEGORY

Apps that use the Google VR SDK and support Daydream but can be used without a controller should include this category (along with action MAIN) in their AndroidManifest.xml. This is similar to the DAYDREAM category, but an app with this category may be launched without a controller being connected, and should use gaze-based interaction or other controllerless interaction systems unless a controller is connected. The user can connect a controller at any time, even after an app is started, so the app should be able to switch to using the controller for input at any time. Additionally, since the user is unable to recenter without a controller connected, the app should ensure that when it starts, the content is in front of the user.

Any app that specifies this should also include the DAYDREAM category, and should act the same as a regular Daydream app if a controller is connected.

Example intent filter:

<intent-filter>
   <action android:name="android.intent.action.MAIN" />
   <category android:name="com.google.intent.category.DAYDREAM" />
   <category android:name="com.google.intent.category.DAYDREAM_CONTROLLER_OPTIONAL" />
 </intent-filter>
 

Constant Value: "com.google.intent.category.DAYDREAM_CONTROLLER_OPTIONAL"

public static final String VERSION

The Google VR SDK version.

Constant Value: "1.180.0"