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.