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.
gvr::UserPrefs
#include <gvr.h>
Convenience C++ wrapper for gvr_user_prefs.
Summary
Inheritance
Inherits from:
gvr::WrapperBase< const gvr_user_prefs >Public functions
GetControllerHandedness
ControllerHandedness GetControllerHandedness() const
IsFeatureEnabled
bool IsFeatureEnabled(
int32_t feature
) const
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\u003e\u003ccode\u003egvr::UserPrefs\u003c/code\u003e is a C++ convenience wrapper for \u003ccode\u003egvr_user_prefs\u003c/code\u003e, providing easier interaction with user preferences.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003egvr::WrapperBase<const gvr_user_prefs>\u003c/code\u003e, offering basic wrapper functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows developers to retrieve the user's preferred controller handedness using \u003ccode\u003eGetControllerHandedness()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt also provides a way to check if specific features are enabled through the \u003ccode\u003eIsFeatureEnabled()\u003c/code\u003e function.\u003c/p\u003e\n"]]],["The `gvr::UserPrefs` class is a C++ wrapper for `gvr_user_prefs`, inheriting from `gvr::WrapperBase`. It offers two primary functionalities: `GetControllerHandedness()`, which retrieves the user's preferred controller hand, and `IsFeatureEnabled(int32_t feature)`, which checks if a specific feature is enabled. Detailed information about these actions can be found in the linked `gvr_user_prefs_get_controller_handedness()` and `gvr_user_prefs_is_feature_enabled()` documentation respectively.\n"],null,["# gvr::UserPrefs Class Reference\n\ngvr::UserPrefs\n==============\n\n`#include \u003cgvr.h\u003e`\n\nConvenience C++ wrapper for gvr_user_prefs.\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: [gvr::WrapperBase\\\u003c const gvr_user_prefs \\\u003e](/vr/reference/android-ndk/class/gvr/wrapper-base)\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [GetControllerHandedness](#classgvr_1_1_user_prefs_1a4da8825e9b2d6a8331ead99f3a6a96ed)`() const ` | `ControllerHandedness` For more information, see [gvr_user_prefs_get_controller_handedness()](/vr/reference/android-ndk/group/base#group__base_1gab81ebcef7308cbbf37e94ce55b5cb42f). |\n| [IsFeatureEnabled](#classgvr_1_1_user_prefs_1a3e1cd3a5eb383a3869a15aae6cae97b4)`(int32_t feature) const ` | `bool` For more information, see [gvr_user_prefs_is_feature_enabled()](/vr/reference/android-ndk/group/base#group__base_1ga43b288be7ec67e084dfc8a343d53b697). |\n\nPublic functions\n----------------\n\n### GetControllerHandedness\n\n```gdscript\nControllerHandedness GetControllerHandedness() const \n``` \nFor more information, see [gvr_user_prefs_get_controller_handedness()](/vr/reference/android-ndk/group/base#group__base_1gab81ebcef7308cbbf37e94ce55b5cb42f). \n\n### IsFeatureEnabled\n\n```gdscript\nbool IsFeatureEnabled(\n int32_t feature\n) const \n``` \nFor more information, see [gvr_user_prefs_is_feature_enabled()](/vr/reference/android-ndk/group/base#group__base_1ga43b288be7ec67e084dfc8a343d53b697)."]]