A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/vr/reference/android/com/google/vr/ndk/base/UserPrefs below:

UserPrefs | Google VR | Google for Developers

UserPrefs

Stay organized with collections Save and categorize content based on your preferences.

Contains information about user preferences. This object will remain valid until the GVR context (wrapped by GvrApi) is destroyed.

Nested Classes Public Methods Inherited Methods From class java.lang.Object boolean final Class<?>

getClass()

int

hashCode()

final void

notify()

final void

notifyAll()

String

toString()

final void

wait(long arg0, int arg1)

final void

wait(long arg0)

final void

wait()

Public Methods public int getControllerHandedness ()

Returns the current controller handedness setting. Will be either ControllerHandedness.RIGHT_HANDED or ControllerHandedness.LEFT_HANDED.

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."],[[["The `UserPrefs` class stores user preferences, such as controller handedness and enabled runtime features, and remains valid until the GVR context is destroyed."],["It provides methods to get the user's preferred controller hand (left or right) and check if a specific runtime feature is enabled."],["Runtime features can be enabled or disabled by the user and may persist while the activity is running, but could be changed when the activity stops."],["Developers can use the `requestFeatures` method of the `GvrApi` class to prompt users to enable or disable runtime features."]]],["The `UserPrefs` class stores user preferences in a VR context. Key actions include retrieving the preferred controller hand (`getControllerHandedness`), which can be either right or left, and checking if a specific runtime feature is enabled (`isFeatureEnabled`). Runtime features can be enabled by the user, persist while the activity runs, and can be disabled later. The `requestFeatures` method allows developers to request that a user enable a feature.\n"]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4