AI-generated Key Takeaways
-
UserPrefs.RuntimeFeatureallows managing user-configurable VR features, like 6DoF controllers and see-through mode. -
Developers can check feature support and user enablement through provided methods like
isFeatureSupportedandisFeatureEnabled. -
requestFeaturesenables prompting users to enable specific features within the app. -
Each
RuntimeFeaturehas an ID and manifest tag for identification and declaration in the app's manifest. -
Two predefined
RuntimeFeaturevalues areGVR_BETA_FEATURE_DAYDREAM_6DOF_CONTROLLERandGVR_BETA_FEATURE_SEE_THROUGH.
These are features that may be available on some devices but can be enabled or disabled by the
user. Whether a specific feature is supported on a platform can be queried via isFeatureSupported(UserPrefs.RuntimeFeature), and whether the feature is enabled by the
user can be queried via isFeatureEnabled(RuntimeFeature). requestFeatures(UserPrefs.RuntimeFeature[], UserPrefs.RuntimeFeature[], android.app.PendingIntent) can be used to ask the user to enable a set of features.
Fields
| public final int | id | ID of this RuntimeFeature. |
| public final String | tag | Manifest tag for this feature. |
Inherited Methods
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.