November 6, 2019 update:
  • There's a new open source Cardboard SDK for iOS and Android NDK that offers a streamlined API, improved device compatibility, and built-in viewer profile QR code scanning. A corresponding Unity package (SDK) is planned for a future release. We recommend that all developers actively building for Google Cardboard migrate (iOS, Android NDK) to the new Cardboard SDK.
October 15, 2019 update:
  • The Daydream View VR headset is no longer available for purchase. However, you can continue to use the existing Google VR SDK to update and distribute your apps to the Google Play Store, and make them available to users in the Daydream app.

GoogleVR.Beta.GvrBetaSettings

Daydream beta settings API.

Summary

Public static functions

IsFeatureEnabled(GvrBetaFeature feature)
bool
Queries whether a particular GVR feature has been enabled by the user.
IsFeatureSupported(GvrBetaFeature feature)
bool
Queries whether a particular GVR feature is supported by the underlying platform.
RequestFeatures(GvrBetaFeature[] requiredFeatures, GvrBetaFeature[] optionalFeatures)
void
Asks the user to enable one or more features.

Public static functions

IsFeatureEnabled

bool IsFeatureEnabled(
  GvrBetaFeature feature
)

Queries whether a particular GVR feature has been enabled by the user.

Details
Parameters
feature
The GvrBetaFeature being queried.
Returns
Returns true if the feature is enabled, false otherwise.

IsFeatureSupported

bool IsFeatureSupported(
  GvrBetaFeature feature
)

Queries whether a particular GVR feature is supported by the underlying platform.

Details
Parameters
feature
The GvrBetaFeature being queried.
Returns
Returns true if the feature is supported, false otherwise.

RequestFeatures

void RequestFeatures(
  GvrBetaFeature[] requiredFeatures,
  GvrBetaFeature[] optionalFeatures
)

Asks the user to enable one or more features.

This API will return immediately and will asynchronously ask the user to enable features using a separate Activity.

Details
Parameters
requiredFeatures
A list of required GvrBetaFeatures. The user will not be returned to the app if they decline a required feature. This can be null if there are no required features.
optionalFeatures
A list of optional GvrBetaFeatures. This can be null if there are no required features.