This site has been permanently archived. The content on this site was last updated in 2019.
Stay organized with collections
Save and categorize content based on your preferences.
GoogleVR.Beta.GvrBetaSettings
Daydream beta settings API.
Summary
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 GvrBetaFeature s. 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 GvrBetaFeature s. This can be null if there are no required features.
|
|
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGvrBetaSettings\u003c/code\u003e API allows developers to manage Daydream beta features.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can check if a feature is enabled or supported using \u003ccode\u003eIsFeatureEnabled\u003c/code\u003e and \u003ccode\u003eIsFeatureSupported\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRequestFeatures\u003c/code\u003e enables developers to prompt users to enable specific features, with options for required and optional features.\u003c/p\u003e\n"]]],["The `GoogleVR.Beta.GvrBetaSettings` API manages Daydream beta features. It allows querying if a specific `GvrBetaFeature` is enabled (`IsFeatureEnabled`) or supported by the platform (`IsFeatureSupported`). The API enables requesting the user to enable specified features via `RequestFeatures`, separating them into required and optional categories, utilizing a list of `GvrBetaFeature`. If the user declines a required feature, they will not return to the application. The user will be prompted in a separate Activity.\n"],null,["# GoogleVR.Beta.GvrBetaSettings Class Reference\n\nGoogleVR.Beta.GvrBetaSettings\n=============================\n\nDaydream beta settings API.\n\nSummary\n-------\n\n| ### Public static functions ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|\n| [IsFeatureEnabled](#classGoogleVR_1_1Beta_1_1GvrBetaSettings_1aadba79a4a31d682a3886ae7bad3e166c)`(`[GvrBetaFeature](/vr/reference/unity/namespace/GoogleVR/Beta#namespaceGoogleVR_1_1Beta_1afda7f428ada1978f9576e9ab0dc1c2db)` feature)` | `bool` Queries whether a particular GVR feature has been enabled by the user. |\n| [IsFeatureSupported](#classGoogleVR_1_1Beta_1_1GvrBetaSettings_1a7e652277af5936fe00a2e26052cead5d)`(`[GvrBetaFeature](/vr/reference/unity/namespace/GoogleVR/Beta#namespaceGoogleVR_1_1Beta_1afda7f428ada1978f9576e9ab0dc1c2db)` feature)` | `bool` Queries whether a particular GVR feature is supported by the underlying platform. |\n| [RequestFeatures](#classGoogleVR_1_1Beta_1_1GvrBetaSettings_1aa4656b598892f863662cc278b9a2185f)`(`[GvrBetaFeature](/vr/reference/unity/namespace/GoogleVR/Beta#namespaceGoogleVR_1_1Beta_1afda7f428ada1978f9576e9ab0dc1c2db)`[] requiredFeatures, `[GvrBetaFeature](/vr/reference/unity/namespace/GoogleVR/Beta#namespaceGoogleVR_1_1Beta_1afda7f428ada1978f9576e9ab0dc1c2db)`[] optionalFeatures)` | `void` Asks the user to enable one or more features. |\n\nPublic static functions\n-----------------------\n\n### IsFeatureEnabled\n\n```c#\nbool IsFeatureEnabled(\n GvrBetaFeature feature\n)\n``` \nQueries whether a particular GVR feature has been enabled by the user.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|---------------------------------------------------------------------------------------------------------|\n| Parameters | |-----------|-------------------------------------| | `feature` | The `GvrBetaFeature` being queried. | |\n| **Returns** | Returns `true` if the feature is enabled, `false` otherwise. |\n\n### IsFeatureSupported\n\n```c#\nbool IsFeatureSupported(\n GvrBetaFeature feature\n)\n``` \nQueries whether a particular GVR feature is supported by the underlying platform.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|---------------------------------------------------------------------------------------------------------|\n| Parameters | |-----------|-------------------------------------| | `feature` | The `GvrBetaFeature` being queried. | |\n| **Returns** | Returns `true` if the feature is supported, `false` otherwise. |\n\n### RequestFeatures\n\n```c#\nvoid RequestFeatures(\n GvrBetaFeature[] requiredFeatures,\n GvrBetaFeature[] optionalFeatures\n)\n``` \nAsks the user to enable one or more features.\n\nThis API will return immediately and will asynchronously ask the user to enable features using a separate Activity.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `requiredFeatures` | A list of required `GvrBetaFeature`s. 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 `GvrBetaFeature`s. This can be null if there are no required features. | |"]]