This site has been permanently archived. The content on this site was last updated in 2019.
UserPrefs.RuntimeFeature
Fields
public
final
int |
id |
ID of this RuntimeFeature. |
public
final
String |
tag |
Manifest tag for this feature. |
Inherited Methods
From class
java.lang.Enum
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()
|
From interface
java.lang.Comparable
Enum Values
public
static
final
UserPrefs.RuntimeFeature
GVR_BETA_FEATURE_DAYDREAM_6DOF_CONTROLLER
Whether the user has plugged in a 6DoF Controller.
public
static
final
UserPrefs.RuntimeFeature
GVR_BETA_FEATURE_SEE_THROUGH
Whether the user has enabled camera see-through.
Fields
public
final
int
id
ID of this RuntimeFeature. This matches the ID in gvr_types.h.
public
final
String
tag
Manifest tag for this feature. This should be declared as meta-data in your app's manifest.
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."],[[["`UserPrefs.RuntimeFeature` allows managing user-configurable VR features, like 6DoF controllers and see-through mode."],["Developers can check feature support and user enablement through provided methods like `isFeatureSupported` and `isFeatureEnabled`."],["`requestFeatures` enables prompting users to enable specific features within the app."],["Each `RuntimeFeature` has an ID and manifest tag for identification and declaration in the app's manifest."],["Two predefined `RuntimeFeature` values are `GVR_BETA_FEATURE_DAYDREAM_6DOF_CONTROLLER` and `GVR_BETA_FEATURE_SEE_THROUGH`."]]],["RuntimeFeatures are device-dependent functionalities that users can enable or disable. Check if a feature is supported using `isFeatureSupported()` and if it's enabled via `isFeatureEnabled()`. Request user permission to enable features using `requestFeatures()`. Each feature has an `id` and a `tag`. Example features include `GVR_BETA_FEATURE_DAYDREAM_6DOF_CONTROLLER` (6DoF controller) and `GVR_BETA_FEATURE_SEE_THROUGH` (camera see-through). The inherited methods includes `compareTo()`, `equals()`, `hashCode()`, and `wait()`.\n"]]