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

GvrUiLayout | Google VR | Google for Developers

GvrUiLayout

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

A UI layout for stereo rendering.

This includes the following UI elements:

In general, this class is thread-safe, and can be obtained via getUiLayout() (where it is automatically attached to the View hierarchy).

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 boolean isEnabled ()

Returns whether the UI layout layer is enabled.

public static void launchOrInstallGvrApp (Activity activity)

Launches or installs the currently configured Google VR settings app.

Parameters activity the current Activity. Required to show a dialog fragment. public void setCloseButtonListener (Runnable listener)

Sets a listener that gets called back when the close button is clicked.

For Daydream-compatible activities, the default close behavior is to finish the activity and navigate back to the 2D Android home launcher. For Cardboard activities, the default close behavior is to simply navigate back.

The client can and should override this if they desire custom behavior, particularly with hybrid VR apps where there are 2D activity components.

Parameters listener the task to execute when the close button is clicked. A null argument restores the default behavior. public void setEnabled (boolean enabled)

Sets whether the UI layout layer is enabled.

Parameters enabled whether to enable the UI layout's appearance. Enabled by default. public void setTransitionViewEnabled (boolean enabled)

Enables/disables the transition view.

Note: Transition view behavior can vary for Daydream Activities and viewers, and may not respect the user setting.

Parameters enabled whether to enable the transition view. Disabled by default. public void setViewerName (String viewerName)

Sets the name of the current viewer, used solely to customize the transition view.

If not provided, a generic viewer name will be used.

Parameters viewerName the current viewer name

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."],[[["`GvrUiLayout` provides UI elements for stereo rendering in VR, including settings, divider, back button, and a transition view."],["It offers methods to control UI behavior, like enabling/disabling the layout, setting a close button listener, and managing the transition view."],["`GvrUiLayout` is typically obtained via `getUiLayout()` and is automatically added to the View hierarchy."],["Default close button behavior differs between Daydream (finishes activity) and Cardboard (navigates back), but can be overridden using `setCloseButtonListener`."],["While generally thread-safe, transition view behavior might vary for different Daydream activities and viewers."]]],["The `GvrUiLayout` class provides a UI for stereo rendering, including a settings button, a vertical divider, a back button, and a transition view. Key actions include enabling/disabling the UI layer and transition view via `setEnabled()` and `setTransitionViewEnabled()`. `setCloseButtonListener()` allows setting a custom callback for the back button. `launchOrInstallGvrApp()` launches or installs the Google VR settings app. `setViewerName` sets the viewer's name. The method `isEnabled()` checks the current UI status.\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