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/AndroidCompat below:

AndroidCompat | Google VR | Google for Developers

AndroidCompat

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

Utility class for using VR-related features that may not be available with all Android versions.

Warning: The functionality is experimental and subject to change in future releases.

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 static void setSustainedPerformanceMode (Activity activity, boolean enabled)

Sets the current android.view.Window to sustained performance mode, when available.

Parameters activity The current Activity. enabled Whether to enable sustained performance mode. public static boolean setVrModeEnabled (Activity activity, boolean enabled)

Sets the appropriate "VR mode" setting for an Activity.

This should typically be called in Activity.onCreate for pure VR activities, and will only have an effect on Android N+.

On Daydream-ready devices, if Google VR Services is not present and enabled, this will prompt the user to install or enable Google VR Services before continuing. If the user continues without Google VR Services present and enabled, the Android OS will not enter VR mode, and some functionality may not be available (e.g. the controller).

Parameters activity The Activity for which to set VR mode. enabled Whether to enable VR mode. Returns

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."],[[["`AndroidCompat` is a utility class for using VR features that may not be available on all Android versions."],["This class provides methods for setting sustained performance mode and enabling VR mode for an `Activity`."],["The functionality provided by `AndroidCompat` is experimental and may change in the future."],["`setVrModeEnabled` only has an effect on Android N+ and may require Google VR Services to be installed and enabled."],["Using `setVrModeEnabled` on Daydream-ready devices without Google VR Services may result in limited functionality."]]],["The `AndroidCompat` class provides utilities for VR features. Key actions include `setSustainedPerformanceMode`, which enables sustained performance mode for a given Activity's window, and `setVrModeEnabled`, which toggles VR mode for an Activity. `setVrModeEnabled` may prompt the user to install or enable Google VR Services. These methods are for use with Android Activities. `setVrModeEnabled` returns `true` if it is successful or `false` otherwise.\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