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/sdk/base/GvrView below:

GvrView | Google VR | Google for Developers

Skip to main content GvrView

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

A View that supports VR rendering.

Designed to work in full screen mode with a landscape or reverse landscape orientation.

This view can be used like a GLSurfaceView by implementing one of its rendering interfaces:

The GvrView.StereoRenderer interface is recommended for all applications that can make use of it, while the GvrView.Renderer interface is discouraged and should only be used if really needed.

The view allows switching from stereo mode to mono rendering mode in stereo renderers at any time by calling the setStereoModeEnabled method.

Nested Classes interface GvrView.Renderer Interface for renderers who need to handle all the stereo rendering details by themselves.  interface GvrView.StereoRenderer Interface for renderers that delegate all stereoscopic rendering details to the view.  Inherited Constants From class android.view.ViewGroup int FOCUS_AFTER_DESCENDANTS int FOCUS_BEFORE_DESCENDANTS int FOCUS_BLOCK_DESCENDANTS int LAYOUT_MODE_CLIP_BOUNDS int LAYOUT_MODE_OPTICAL_BOUNDS int PERSISTENT_ALL_CACHES int PERSISTENT_ANIMATION_CACHE int PERSISTENT_NO_CACHE int PERSISTENT_SCROLLING_CACHE From class android.view.View int ACCESSIBILITY_LIVE_REGION_ASSERTIVE int ACCESSIBILITY_LIVE_REGION_NONE int ACCESSIBILITY_LIVE_REGION_POLITE int AUTOFILL_FLAG_INCLUDE_NOT_IMPORTANT_VIEWS String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH String AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR String AUTOFILL_HINT_CREDIT_CARD_NUMBER String AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE String AUTOFILL_HINT_EMAIL_ADDRESS String AUTOFILL_HINT_NAME String AUTOFILL_HINT_PASSWORD String AUTOFILL_HINT_PHONE String AUTOFILL_HINT_POSTAL_ADDRESS String AUTOFILL_HINT_POSTAL_CODE String AUTOFILL_HINT_USERNAME int AUTOFILL_TYPE_DATE int AUTOFILL_TYPE_LIST int AUTOFILL_TYPE_NONE int AUTOFILL_TYPE_TEXT int AUTOFILL_TYPE_TOGGLE int DRAG_FLAG_GLOBAL int DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION int DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION int DRAG_FLAG_GLOBAL_URI_READ int DRAG_FLAG_GLOBAL_URI_WRITE int DRAG_FLAG_OPAQUE int DRAWING_CACHE_QUALITY_AUTO int DRAWING_CACHE_QUALITY_HIGH int DRAWING_CACHE_QUALITY_LOW int FIND_VIEWS_WITH_CONTENT_DESCRIPTION int FIND_VIEWS_WITH_TEXT int FOCUSABLE int FOCUSABLES_ALL int FOCUSABLES_TOUCH_MODE int FOCUSABLE_AUTO int FOCUS_BACKWARD int FOCUS_DOWN int FOCUS_FORWARD int FOCUS_LEFT int FOCUS_RIGHT int FOCUS_UP int GONE int HAPTIC_FEEDBACK_ENABLED int IMPORTANT_FOR_ACCESSIBILITY_AUTO int IMPORTANT_FOR_ACCESSIBILITY_NO int IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS int IMPORTANT_FOR_ACCESSIBILITY_YES int IMPORTANT_FOR_AUTOFILL_AUTO int IMPORTANT_FOR_AUTOFILL_NO int IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS int IMPORTANT_FOR_AUTOFILL_YES int IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS int INVISIBLE int KEEP_SCREEN_ON int LAYER_TYPE_HARDWARE int LAYER_TYPE_NONE int LAYER_TYPE_SOFTWARE int LAYOUT_DIRECTION_INHERIT int LAYOUT_DIRECTION_LOCALE int LAYOUT_DIRECTION_LTR int LAYOUT_DIRECTION_RTL int MEASURED_HEIGHT_STATE_SHIFT int MEASURED_SIZE_MASK int MEASURED_STATE_MASK int MEASURED_STATE_TOO_SMALL int NOT_FOCUSABLE int NO_ID int OVER_SCROLL_ALWAYS int OVER_SCROLL_IF_CONTENT_SCROLLS int OVER_SCROLL_NEVER int SCREEN_STATE_OFF int SCREEN_STATE_ON int SCROLLBARS_INSIDE_INSET int SCROLLBARS_INSIDE_OVERLAY int SCROLLBARS_OUTSIDE_INSET int SCROLLBARS_OUTSIDE_OVERLAY int SCROLLBAR_POSITION_DEFAULT int SCROLLBAR_POSITION_LEFT int SCROLLBAR_POSITION_RIGHT int SCROLL_AXIS_HORIZONTAL int SCROLL_AXIS_NONE int SCROLL_AXIS_VERTICAL int SCROLL_INDICATOR_BOTTOM int SCROLL_INDICATOR_END int SCROLL_INDICATOR_LEFT int SCROLL_INDICATOR_RIGHT int SCROLL_INDICATOR_START int SCROLL_INDICATOR_TOP int SOUND_EFFECTS_ENABLED int STATUS_BAR_HIDDEN int STATUS_BAR_VISIBLE int SYSTEM_UI_FLAG_FULLSCREEN int SYSTEM_UI_FLAG_HIDE_NAVIGATION int SYSTEM_UI_FLAG_IMMERSIVE int SYSTEM_UI_FLAG_IMMERSIVE_STICKY int SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN int SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION int SYSTEM_UI_FLAG_LAYOUT_STABLE int SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR int SYSTEM_UI_FLAG_LIGHT_STATUS_BAR int SYSTEM_UI_FLAG_LOW_PROFILE int SYSTEM_UI_FLAG_VISIBLE int SYSTEM_UI_LAYOUT_FLAGS int TEXT_ALIGNMENT_CENTER int TEXT_ALIGNMENT_GRAVITY int TEXT_ALIGNMENT_INHERIT int TEXT_ALIGNMENT_TEXT_END int TEXT_ALIGNMENT_TEXT_START int TEXT_ALIGNMENT_VIEW_END int TEXT_ALIGNMENT_VIEW_START int TEXT_DIRECTION_ANY_RTL int TEXT_DIRECTION_FIRST_STRONG int TEXT_DIRECTION_FIRST_STRONG_LTR int TEXT_DIRECTION_FIRST_STRONG_RTL int TEXT_DIRECTION_INHERIT int TEXT_DIRECTION_LOCALE int TEXT_DIRECTION_LTR int TEXT_DIRECTION_RTL int VISIBLE Inherited Fields From class android.view.View public static final Property<ViewFloat> ALPHA public static final Property<ViewFloat> ROTATION public static final Property<ViewFloat> ROTATION_X public static final Property<ViewFloat> ROTATION_Y public static final Property<ViewFloat> SCALE_X public static final Property<ViewFloat> SCALE_Y public static final Property<ViewFloat> TRANSLATION_X public static final Property<ViewFloat> TRANSLATION_Y public static final Property<ViewFloat> TRANSLATION_Z public static final Property<ViewFloat> X public static final Property<ViewFloat> Y public static final Property<ViewFloat> Z Public Constructors Public Methods void boolean boolean GvrApi GvrViewerParams HeadMountedDisplay float float ScreenParams boolean void onBackPressed

()

Optional hook the client can trigger from Activity.onBackPressed().

void onPause

()

Informs the view that the activity has been paused.

void onResume

()

Informs the view that the activity has been resumed.

void void recenterHeadTracker

()

Recenters the head orientation (resets the yaw to zero, leaving pitch and roll unmodified).

void resetHeadTracker

()

This method is deprecated. This method will be removed in future versions of this API. All uses of this method can be safely replaced with calls to recenterHeadTracker(). boolean void void void setEGLConfigChooser

(int redSize, int greenSize, int blueSize, int alphaSize, int depthSize, int stencilSize)

Install a config chooser which will choose a config with at least the specified depthSize and stencilSize, and exactly the specified redSize, greenSize, blueSize and alphaSize.

void void setMultisampling

(int numSamples)

Sets the number of samples per pixel, for multisampling.

void setNeckModelEnabled

(boolean enabled)

Fully enables or disables use of the neck model for head tracking.

void void void void void void void void void setTransitionViewEnabled

(boolean enabled)

Enables/disables the transition view used to prompt the user to place their phone into a GVR viewer.

void shutdown

()

Shuts down the GvrView implementation, freeing associated resources.

void void Inherited Methods From class android.widget.FrameLayout From class android.view.ViewGroup void void void boolean

addStatesFromChildren()

void void void addView

(

View

arg0, int arg1)

void void void addView

(

View

arg0, int arg1, int arg2)

void bringChildToFront

(

View

arg0)

void childDrawableStateChanged

(

View

arg0)

void childHasTransientStateChanged

(

View

arg0, boolean arg1)

void clearChildFocus

(

View

arg0)

void

clearDisappearingChildren()

void

clearFocus()

WindowInsets boolean void void

dispatchDisplayHint(int arg0)

boolean void

dispatchDrawableHotspotChanged(float arg0, float arg1)

void

dispatchFinishTemporaryDetach()

boolean boolean boolean dispatchKeyShortcutEvent

(

KeyEvent

arg0)

void

dispatchPointerCaptureChanged(boolean arg0)

void

dispatchProvideAutofillStructure(ViewStructure arg0, int arg1)

void

dispatchProvideStructure(ViewStructure arg0)

void

dispatchSetActivated(boolean arg0)

void

dispatchSetSelected(boolean arg0)

void

dispatchStartTemporaryDetach()

void

dispatchSystemUiVisibilityChanged(int arg0)

boolean boolean boolean dispatchUnhandledMove

(

View

arg0, int arg1)

void

dispatchWindowFocusChanged(boolean arg0)

void

dispatchWindowSystemUiVisiblityChanged(int arg0)

void

dispatchWindowVisibilityChanged(int arg0)

void endViewTransition

(

View

arg0)

View

findFocus()

void View focusSearch

(

View

arg0, int arg1)

void focusableViewAvailable

(

View

arg0)

boolean gatherTransparentRegion

(

Region

arg0)

ViewGroup.LayoutParams CharSequence

getAccessibilityClassName()

View

getChildAt(int arg0)

int

getChildCount()

static int

getChildMeasureSpec(int arg0, int arg1, int arg2)

boolean boolean

getClipChildren()

boolean

getClipToPadding()

int

getDescendantFocusability()

View

getFocusedChild()

LayoutAnimationController

getLayoutAnimation()

Animation.AnimationListener

getLayoutAnimationListener()

int

getLayoutMode()

LayoutTransition

getLayoutTransition()

int

getNestedScrollAxes()

ViewOverlay

getOverlay()

int

getPersistentDrawingCache()

boolean

getTouchscreenBlocksFocus()

boolean

hasFocus()

boolean

hasTransientState()

int indexOfChild

(

View

arg0)

final void ViewParent invalidateChildInParent

(int[] arg0,

Rect

arg1)

boolean

isAlwaysDrawnWithCacheEnabled()

boolean

isAnimationCacheEnabled()

boolean

isLayoutSuppressed()

boolean

isMotionEventSplittingEnabled()

boolean

isTransitionGroup()

void

jumpDrawablesToCurrentState()

final void

layout(int arg0, int arg1, int arg2, int arg3)

void notifySubtreeAccessibilityStateChanged

(

View

arg0,

View

arg1, int arg2)

final void offsetDescendantRectToMyCoords

(

View

arg0,

Rect

arg1)

final void offsetRectIntoDescendantCoords

(

View

arg0,

Rect

arg1)

void onDescendantInvalidated

(

View

arg0,

View

arg1)

boolean boolean boolean onNestedFling

(

View

arg0, float arg1, float arg2, boolean arg3)

boolean onNestedPreFling

(

View

arg0, float arg1, float arg2)

boolean onNestedPrePerformAccessibilityAction

(

View

arg0, int arg1,

Bundle

arg2)

void onNestedPreScroll

(

View

arg0, int arg1, int arg2, int[] arg3)

void onNestedScroll

(

View

arg0, int arg1, int arg2, int arg3, int arg4)

void onNestedScrollAccepted

(

View

arg0,

View

arg1, int arg2)

boolean PointerIcon boolean onStartNestedScroll

(

View

arg0,

View

arg1, int arg2)

void onStopNestedScroll

(

View

arg0)

void void onViewRemoved

(

View

arg0)

void recomputeViewAttributes

(

View

arg0)

void

removeAllViews()

void

removeAllViewsInLayout()

void void

removeViewAt(int arg0)

void removeViewInLayout

(

View

arg0)

void

removeViews(int arg0, int arg1)

void

removeViewsInLayout(int arg0, int arg1)

void requestChildFocus

(

View

arg0,

View

arg1)

boolean requestChildRectangleOnScreen

(

View

arg0,

Rect

arg1, boolean arg2)

void

requestDisallowInterceptTouchEvent(boolean arg0)

boolean requestFocus

(int arg0,

Rect

arg1)

boolean void requestTransparentRegion

(

View

arg0)

boolean

restoreDefaultFocus()

void

scheduleLayoutAnimation()

void

setAddStatesFromChildren(boolean arg0)

void

setAlwaysDrawnWithCacheEnabled(boolean arg0)

void

setAnimationCacheEnabled(boolean arg0)

void

setClipChildren(boolean arg0)

void

setClipToPadding(boolean arg0)

void

setDescendantFocusability(int arg0)

void void void

setLayoutMode(int arg0)

void void

setMotionEventSplittingEnabled(boolean arg0)

void void

setPersistentDrawingCache(int arg0)

void

setTouchscreenBlocksFocus(boolean arg0)

void

setTransitionGroup(boolean arg0)

boolean

shouldDelayChildPressedState()

boolean showContextMenuForChild

(

View

arg0, float arg1, float arg2)

boolean showContextMenuForChild

(

View

arg0)

ActionMode ActionMode void

startLayoutAnimation()

void startViewTransition

(

View

arg0)

void

suppressLayout(boolean arg0)

void From class android.view.View void void void void void void void void

addOnUnhandledKeyEventListener(View.OnUnhandledKeyEventListener arg0)

void ViewPropertyAnimator

animate()

void void

autofill(AutofillValue arg0)

void void

bringToFront()

void

buildDrawingCache(boolean arg0)

void

buildDrawingCache()

void

buildLayer()

boolean

callOnClick()

boolean

canResolveLayoutDirection()

boolean

canResolveTextAlignment()

boolean

canResolveTextDirection()

boolean

canScrollHorizontally(int arg0)

boolean

canScrollVertically(int arg0)

final void

cancelDragAndDrop()

void

cancelLongPress()

final void

cancelPendingInputEvents()

boolean checkInputConnectionProxy

(

View

arg0)

void

clearAnimation()

void

clearFocus()

static int

combineMeasuredStates(int arg0, int arg1)

void

computeScroll()

WindowInsets AccessibilityNodeInfo

createAccessibilityNodeInfo()

void void

destroyDrawingCache()

WindowInsets boolean void void

dispatchDisplayHint(int arg0)

boolean void

dispatchDrawableHotspotChanged(float arg0, float arg1)

void

dispatchFinishTemporaryDetach()

boolean boolean boolean boolean dispatchKeyShortcutEvent

(

KeyEvent

arg0)

boolean

dispatchNestedFling(float arg0, float arg1, boolean arg2)

boolean

dispatchNestedPreFling(float arg0, float arg1)

boolean dispatchNestedPrePerformAccessibilityAction

(int arg0,

Bundle

arg1)

boolean

dispatchNestedPreScroll(int arg0, int arg1, int[] arg2, int[] arg3)

boolean

dispatchNestedScroll(int arg0, int arg1, int arg2, int arg3, int[] arg4)

void

dispatchPointerCaptureChanged(boolean arg0)

boolean void

dispatchProvideAutofillStructure(ViewStructure arg0, int arg1)

void

dispatchProvideStructure(ViewStructure arg0)

void

dispatchStartTemporaryDetach()

void

dispatchSystemUiVisibilityChanged(int arg0)

boolean boolean boolean dispatchUnhandledMove

(

View

arg0, int arg1)

void

dispatchWindowFocusChanged(boolean arg0)

void

dispatchWindowSystemUiVisiblityChanged(int arg0)

void

dispatchWindowVisibilityChanged(int arg0)

void void

drawableHotspotChanged(float arg0, float arg1)

View

findFocus()

final <T extends View> T

findViewById(int arg0)

final <T extends View> T findViewWithTag

(

Object

arg0)

void View

focusSearch(int arg0)

void

forceHasOverlappingRendering(boolean arg0)

void

forceLayout()

static int

generateViewId()

CharSequence

getAccessibilityClassName()

View.AccessibilityDelegate

getAccessibilityDelegate()

int

getAccessibilityLiveRegion()

AccessibilityNodeProvider

getAccessibilityNodeProvider()

CharSequence

getAccessibilityPaneTitle()

int

getAccessibilityTraversalAfter()

int

getAccessibilityTraversalBefore()

float

getAlpha()

Animation

getAnimation()

IBinder

getApplicationWindowToken()

String[]

getAutofillHints()

final AutofillId

getAutofillId()

int

getAutofillType()

AutofillValue

getAutofillValue()

Drawable

getBackground()

ColorStateList

getBackgroundTintList()

PorterDuff.Mode

getBackgroundTintMode()

int

getBaseline()

final int

getBottom()

float

getCameraDistance()

boolean getClipBounds

(

Rect

arg0)

Rect

getClipBounds()

final boolean

getClipToOutline()

CharSequence

getContentDescription()

final Context

getContext()

final boolean

getDefaultFocusHighlightEnabled()

static int

getDefaultSize(int arg0, int arg1)

Display

getDisplay()

final int[]

getDrawableState()

Bitmap

getDrawingCache()

Bitmap

getDrawingCache(boolean arg0)

int

getDrawingCacheBackgroundColor()

int

getDrawingCacheQuality()

void getDrawingRect

(

Rect

arg0)

long

getDrawingTime()

float

getElevation()

boolean

getFilterTouchesWhenObscured()

boolean

getFitsSystemWindows()

int

getFocusable()

ArrayList<View>

getFocusables(int arg0)

void getFocusedRect

(

Rect

arg0)

Drawable

getForeground()

int

getForegroundGravity()

ColorStateList

getForegroundTintList()

PorterDuff.Mode

getForegroundTintMode()

final boolean getGlobalVisibleRect

(

Rect

arg0)

boolean getGlobalVisibleRect

(

Rect

arg0,

Point

arg1)

Handler

getHandler()

final boolean

getHasOverlappingRendering()

final int

getHeight()

void int

getHorizontalFadingEdgeLength()

int

getId()

int

getImportantForAccessibility()

int

getImportantForAutofill()

boolean

getKeepScreenOn()

KeyEvent.DispatcherState

getKeyDispatcherState()

int

getLabelFor()

int

getLayerType()

int

getLayoutDirection()

ViewGroup.LayoutParams

getLayoutParams()

final int

getLeft()

final boolean getLocalVisibleRect

(

Rect

arg0)

void

getLocationInWindow(int[] arg0)

void

getLocationOnScreen(int[] arg0)

Matrix

getMatrix()

final int

getMeasuredHeight()

final int

getMeasuredHeightAndState()

final int

getMeasuredState()

final int

getMeasuredWidth()

final int

getMeasuredWidthAndState()

int

getMinimumHeight()

int

getMinimumWidth()

int

getNextClusterForwardId()

int

getNextFocusDownId()

int

getNextFocusForwardId()

int

getNextFocusLeftId()

int

getNextFocusRightId()

int

getNextFocusUpId()

View.OnFocusChangeListener

getOnFocusChangeListener()

int

getOutlineAmbientShadowColor()

ViewOutlineProvider

getOutlineProvider()

int

getOutlineSpotShadowColor()

int

getOverScrollMode()

ViewOverlay

getOverlay()

int

getPaddingBottom()

int

getPaddingEnd()

int

getPaddingLeft()

int

getPaddingRight()

int

getPaddingStart()

int

getPaddingTop()

final ViewParent

getParent()

ViewParent

getParentForAccessibility()

float

getPivotX()

float

getPivotY()

PointerIcon

getPointerIcon()

Resources

getResources()

final boolean

getRevealOnFocusHint()

final int

getRight()

View

getRootView()

WindowInsets

getRootWindowInsets()

float

getRotation()

float

getRotationX()

float

getRotationY()

float

getScaleX()

float

getScaleY()

int

getScrollBarDefaultDelayBeforeFade()

int

getScrollBarFadeDuration()

int

getScrollBarSize()

int

getScrollBarStyle()

int

getScrollIndicators()

final int

getScrollX()

final int

getScrollY()

int

getSolidColor()

int

getSourceLayoutResId()

StateListAnimator

getStateListAnimator()

int

getSystemUiVisibility()

Object

getTag()

Object

getTag(int arg0)

int

getTextAlignment()

int

getTextDirection()

CharSequence

getTooltipText()

final int

getTop()

TouchDelegate

getTouchDelegate()

ArrayList<View>

getTouchables()

float

getTransitionAlpha()

String

getTransitionName()

float

getTranslationX()

float

getTranslationY()

float

getTranslationZ()

long

getUniqueDrawingId()

int

getVerticalFadingEdgeLength()

int

getVerticalScrollbarPosition()

int

getVerticalScrollbarWidth()

ViewTreeObserver

getViewTreeObserver()

int

getVisibility()

final int

getWidth()

WindowId

getWindowId()

int

getWindowSystemUiVisibility()

IBinder

getWindowToken()

int

getWindowVisibility()

void getWindowVisibleDisplayFrame

(

Rect

arg0)

float

getX()

float

getY()

float

getZ()

boolean

hasExplicitFocusable()

boolean

hasFocus()

boolean

hasFocusable()

boolean

hasNestedScrollingParent()

boolean

hasOnClickListeners()

boolean

hasOverlappingRendering()

boolean

hasPointerCapture()

boolean

hasTransientState()

boolean

hasWindowFocus()

static View void

invalidate()

void void

invalidate(int arg0, int arg1, int arg2, int arg3)

void void

invalidateOutline()

boolean

isAccessibilityFocused()

boolean

isAccessibilityHeading()

boolean

isActivated()

boolean

isAttachedToWindow()

boolean

isClickable()

boolean

isContextClickable()

boolean

isDirty()

boolean

isDrawingCacheEnabled()

boolean

isDuplicateParentStateEnabled()

boolean

isEnabled()

final boolean

isFocusable()

final boolean

isFocusableInTouchMode()

boolean

isFocused()

final boolean

isFocusedByDefault()

boolean

isForceDarkAllowed()

boolean

isHapticFeedbackEnabled()

boolean

isHardwareAccelerated()

boolean

isHorizontalFadingEdgeEnabled()

boolean

isHorizontalScrollBarEnabled()

boolean

isHovered()

boolean

isImportantForAccessibility()

final boolean

isImportantForAutofill()

boolean

isInEditMode()

boolean

isInLayout()

boolean

isInTouchMode()

final boolean

isKeyboardNavigationCluster()

boolean

isLaidOut()

boolean

isLayoutDirectionResolved()

boolean

isLayoutRequested()

boolean

isLongClickable()

boolean

isNestedScrollingEnabled()

boolean

isOpaque()

boolean

isPaddingRelative()

boolean

isPivotSet()

boolean

isPressed()

boolean

isSaveEnabled()

boolean

isSaveFromParentEnabled()

boolean

isScreenReaderFocusable()

boolean

isScrollContainer()

boolean

isScrollbarFadingEnabled()

boolean

isSelected()

boolean

isShown()

boolean

isSoundEffectsEnabled()

final boolean

isTemporarilyDetached()

boolean

isTextAlignmentResolved()

boolean

isTextDirectionResolved()

boolean

isVerticalFadingEdgeEnabled()

boolean

isVerticalScrollBarEnabled()

boolean

isVisibleToUserForAutofill(int arg0)

void

jumpDrawablesToCurrentState()

View keyboardNavigationClusterSearch

(

View

arg0, int arg1)

void

layout(int arg0, int arg1, int arg2, int arg3)

final void

measure(int arg0, int arg1)

void

offsetLeftAndRight(int arg0)

void

offsetTopAndBottom(int arg0)

WindowInsets void

onCancelPendingInputEvents()

boolean boolean

onCheckIsTextEditor()

InputConnection boolean void onDrawForeground

(

Canvas

arg0)

boolean void

onFinishTemporaryDetach()

boolean void

onHoverChanged(boolean arg0)

boolean void void boolean boolean onKeyLongPress

(int arg0,

KeyEvent

arg1)

boolean onKeyMultiple

(int arg0, int arg1,

KeyEvent

arg2)

boolean boolean boolean void

onPointerCaptureChange(boolean arg0)

void void

onProvideAutofillStructure(ViewStructure arg0, int arg1)

void

onProvideAutofillVirtualStructure(ViewStructure arg0, int arg1)

void

onProvideStructure(ViewStructure arg0)

void

onProvideVirtualStructure(ViewStructure arg0)

PointerIcon void

onRtlPropertiesChanged(int arg0)

void

onScreenStateChanged(int arg0)

void

onStartTemporaryDetach()

boolean boolean void

onVisibilityAggregated(boolean arg0)

void

onWindowFocusChanged(boolean arg0)

void

onWindowSystemUiVisibilityChanged(int arg0)

boolean performAccessibilityAction

(int arg0,

Bundle

arg1)

boolean

performClick()

boolean

performContextClick(float arg0, float arg1)

boolean

performContextClick()

boolean

performHapticFeedback(int arg0)

boolean

performHapticFeedback(int arg0, int arg1)

boolean

performLongClick(float arg0, float arg1)

boolean

performLongClick()

void

playSoundEffect(int arg0)

boolean boolean void

postInvalidate()

void

postInvalidate(int arg0, int arg1, int arg2, int arg3)

void

postInvalidateDelayed(long arg0, int arg1, int arg2, int arg3, int arg4)

void

postInvalidateDelayed(long arg0)

void

postInvalidateOnAnimation(int arg0, int arg1, int arg2, int arg3)

void

postInvalidateOnAnimation()

void void postOnAnimationDelayed

(

Runnable

arg0, long arg1)

void

refreshDrawableState()

void

releasePointerCapture()

boolean void void void

removeOnUnhandledKeyEventListener(View.OnUnhandledKeyEventListener arg0)

void

requestApplyInsets()

void

requestFitSystemWindows()

final boolean

requestFocus(int arg0)

final boolean

requestFocus()

boolean requestFocus

(int arg0,

Rect

arg1)

final boolean

requestFocusFromTouch()

void

requestLayout()

void

requestPointerCapture()

boolean requestRectangleOnScreen

(

Rect

arg0)

boolean requestRectangleOnScreen

(

Rect

arg0, boolean arg1)

final void final <T extends View> T

requireViewById(int arg0)

void

resetPivot()

static int

resolveSize(int arg0, int arg1)

static int

resolveSizeAndState(int arg0, int arg1, int arg2)

boolean

restoreDefaultFocus()

void void void void

scrollBy(int arg0, int arg1)

void

scrollTo(int arg0, int arg1)

void

sendAccessibilityEvent(int arg0)

void void void

setAccessibilityHeading(boolean arg0)

void

setAccessibilityLiveRegion(int arg0)

void void

setAccessibilityTraversalAfter(int arg0)

void

setAccessibilityTraversalBefore(int arg0)

void

setActivated(boolean arg0)

void

setAlpha(float arg0)

void void setAnimationMatrix

(

Matrix

arg0)

void void

setAutofillId(AutofillId arg0)

void void

setBackgroundColor(int arg0)

void void

setBackgroundResource(int arg0)

void void final void

setBottom(int arg0)

void

setCameraDistance(float arg0)

void

setClickable(boolean arg0)

void setClipBounds

(

Rect

arg0)

void

setClipToOutline(boolean arg0)

void void

setContextClickable(boolean arg0)

void

setDefaultFocusHighlightEnabled(boolean arg0)

void

setDrawingCacheBackgroundColor(int arg0)

void

setDrawingCacheEnabled(boolean arg0)

void

setDrawingCacheQuality(int arg0)

void

setDuplicateParentStateEnabled(boolean arg0)

void

setElevation(float arg0)

void

setEnabled(boolean arg0)

void

setFadingEdgeLength(int arg0)

void

setFilterTouchesWhenObscured(boolean arg0)

void

setFitsSystemWindows(boolean arg0)

void

setFocusable(boolean arg0)

void

setFocusable(int arg0)

void

setFocusableInTouchMode(boolean arg0)

void

setFocusedByDefault(boolean arg0)

void

setForceDarkAllowed(boolean arg0)

void void

setForegroundGravity(int arg0)

void void void

setHapticFeedbackEnabled(boolean arg0)

void

setHasTransientState(boolean arg0)

void

setHorizontalFadingEdgeEnabled(boolean arg0)

void

setHorizontalScrollBarEnabled(boolean arg0)

void

setHovered(boolean arg0)

void

setId(int arg0)

void

setImportantForAccessibility(int arg0)

void

setImportantForAutofill(int arg0)

void

setKeepScreenOn(boolean arg0)

void

setKeyboardNavigationCluster(boolean arg0)

void

setLabelFor(int arg0)

void setLayerPaint

(

Paint

arg0)

void setLayerType

(int arg0,

Paint

arg1)

void

setLayoutDirection(int arg0)

void final void

setLeft(int arg0)

final void

setLeftTopRightBottom(int arg0, int arg1, int arg2, int arg3)

void

setLongClickable(boolean arg0)

void

setMinimumHeight(int arg0)

void

setMinimumWidth(int arg0)

void

setNestedScrollingEnabled(boolean arg0)

void

setNextClusterForwardId(int arg0)

void

setNextFocusDownId(int arg0)

void

setNextFocusForwardId(int arg0)

void

setNextFocusLeftId(int arg0)

void

setNextFocusRightId(int arg0)

void

setNextFocusUpId(int arg0)

void void

setOnCapturedPointerListener(View.OnCapturedPointerListener arg0)

void void

setOnContextClickListener(View.OnContextClickListener arg0)

void void void void void void void void

setOnScrollChangeListener(View.OnScrollChangeListener arg0)

void void void

setOutlineAmbientShadowColor(int arg0)

void void

setOutlineSpotShadowColor(int arg0)

void

setOverScrollMode(int arg0)

void

setPadding(int arg0, int arg1, int arg2, int arg3)

void

setPaddingRelative(int arg0, int arg1, int arg2, int arg3)

void

setPivotX(float arg0)

void

setPivotY(float arg0)

void

setPointerIcon(PointerIcon arg0)

void

setPressed(boolean arg0)

final void

setRevealOnFocusHint(boolean arg0)

final void

setRight(int arg0)

void

setRotation(float arg0)

void

setRotationX(float arg0)

void

setRotationY(float arg0)

void

setSaveEnabled(boolean arg0)

void

setSaveFromParentEnabled(boolean arg0)

void

setScaleX(float arg0)

void

setScaleY(float arg0)

void

setScreenReaderFocusable(boolean arg0)

void

setScrollBarDefaultDelayBeforeFade(int arg0)

void

setScrollBarFadeDuration(int arg0)

void

setScrollBarSize(int arg0)

void

setScrollBarStyle(int arg0)

void

setScrollContainer(boolean arg0)

void

setScrollIndicators(int arg0, int arg1)

void

setScrollIndicators(int arg0)

void

setScrollX(int arg0)

void

setScrollY(int arg0)

void

setScrollbarFadingEnabled(boolean arg0)

void

setSelected(boolean arg0)

void

setSoundEffectsEnabled(boolean arg0)

void void

setSystemUiVisibility(int arg0)

void setTag

(int arg0,

Object

arg1)

void void

setTextAlignment(int arg0)

void

setTextDirection(int arg0)

void final void

setTop(int arg0)

void void

setTransitionAlpha(float arg0)

final void setTransitionName

(

String

arg0)

void

setTranslationX(float arg0)

void

setTranslationY(float arg0)

void

setTranslationZ(float arg0)

void

setVerticalFadingEdgeEnabled(boolean arg0)

void

setVerticalScrollBarEnabled(boolean arg0)

void

setVerticalScrollbarPosition(int arg0)

void

setVisibility(int arg0)

void

setWillNotCacheDrawing(boolean arg0)

void

setWillNotDraw(boolean arg0)

void

setX(float arg0)

void

setY(float arg0)

void

setZ(float arg0)

boolean

showContextMenu()

boolean

showContextMenu(float arg0, float arg1)

ActionMode ActionMode void final boolean final boolean boolean

startNestedScroll(int arg0)

void

stopNestedScroll()

String

toString()

void transformMatrixToGlobal

(

Matrix

arg0)

void transformMatrixToLocal

(

Matrix

arg0)

void void final void boolean

willNotCacheDrawing()

boolean

willNotDraw()

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

From interface android.view.ViewParent abstract void bringChildToFront

(

View

arg0)

abstract boolean

canResolveLayoutDirection()

abstract boolean

canResolveTextAlignment()

abstract boolean

canResolveTextDirection()

abstract void childDrawableStateChanged

(

View

arg0)

abstract void childHasTransientStateChanged

(

View

arg0, boolean arg1)

abstract void clearChildFocus

(

View

arg0)

abstract void abstract View focusSearch

(

View

arg0, int arg1)

abstract void focusableViewAvailable

(

View

arg0)

abstract boolean abstract int

getLayoutDirection()

abstract ViewParent

getParent()

abstract ViewParent

getParentForAccessibility()

abstract int

getTextAlignment()

abstract int

getTextDirection()

abstract void abstract ViewParent invalidateChildInParent

(int[] arg0,

Rect

arg1)

abstract boolean

isLayoutDirectionResolved()

abstract boolean

isLayoutRequested()

abstract boolean

isTextAlignmentResolved()

abstract boolean

isTextDirectionResolved()

abstract View keyboardNavigationClusterSearch

(

View

arg0, int arg1)

abstract void notifySubtreeAccessibilityStateChanged

(

View

arg0,

View

arg1, int arg2)

void onDescendantInvalidated

(

View

arg0,

View

arg1)

abstract boolean onNestedFling

(

View

arg0, float arg1, float arg2, boolean arg3)

abstract boolean onNestedPreFling

(

View

arg0, float arg1, float arg2)

abstract boolean onNestedPrePerformAccessibilityAction

(

View

arg0, int arg1,

Bundle

arg2)

abstract void onNestedPreScroll

(

View

arg0, int arg1, int arg2, int[] arg3)

abstract void onNestedScroll

(

View

arg0, int arg1, int arg2, int arg3, int arg4)

abstract void onNestedScrollAccepted

(

View

arg0,

View

arg1, int arg2)

abstract boolean onStartNestedScroll

(

View

arg0,

View

arg1, int arg2)

abstract void onStopNestedScroll

(

View

arg0)

abstract void recomputeViewAttributes

(

View

arg0)

abstract void requestChildFocus

(

View

arg0,

View

arg1)

abstract boolean requestChildRectangleOnScreen

(

View

arg0,

Rect

arg1, boolean arg2)

abstract void

requestDisallowInterceptTouchEvent(boolean arg0)

abstract void

requestFitSystemWindows()

abstract void

requestLayout()

abstract boolean abstract void requestTransparentRegion

(

View

arg0)

abstract boolean showContextMenuForChild

(

View

arg0)

abstract boolean showContextMenuForChild

(

View

arg0, float arg1, float arg2)

abstract ActionMode abstract ActionMode From interface android.view.ViewManager From interface android.graphics.drawable.Drawable.Callback From interface android.view.KeyEvent.Callback abstract boolean abstract boolean onKeyLongPress

(int arg0,

KeyEvent

arg1)

abstract boolean onKeyMultiple

(int arg0, int arg1,

KeyEvent

arg2)

abstract boolean From interface android.view.accessibility.AccessibilityEventSource abstract void

sendAccessibilityEvent(int arg0)

abstract void Public Constructors public GvrView (Context context)

Creates a new GvrView instance.

Parameters context The current Context. This *must* be, or wrap, an Activity instance. Returns public GvrView (Context context, AttributeSet attrs)

Creates a new GvrView instance.

Parameters context The current Context. This *must* be, or wrap, an Activity instance. attrs The custom AttributeSet. Returns Public Methods public void enableCardboardTriggerEmulation ()

Enables emulation of Cardboard-style touch trigger input when using a Daydream headset.

A Cardboard viewer supports touch-trigger based input, whereas a Daydream headest supports controller input. Enabling Cardboard trigger emulation will simulate Cardboard-style touch trigger input (see setOnCardboardTriggerListener(Runnable) using app and touchpad button events from a Daydream controller. This allows Cardboard-supporting apps to simply and easily support operation on a Daydream headset. Enabling this emulation will have no effect when the paired viewer is already a Cardboard viewer.

Note: It is not sufficient to enable Cardboard trigger emulation to run a Cardboard app on a Daydream headset. The following adjustments to a regular Cardboard app need also be made:

Note: Enabling trigger emulation will *only* translate controller clicks into trigger events. The client reticle (if present) will continue to track the user's head motion, which may be less than intuitive for users accustomed to controller-driven reticle motion in a typical Daydream app.

public boolean getAsyncReprojectionEnabled ()

Returns the current asynchronous reprojection setting.

Returns public boolean getDistortionCorrectionEnabled ()

Gets whether distortion correction is enabled.

Returns public GvrViewerParams getGvrViewerParams () Returns public HeadMountedDisplay getHeadMountedDisplay ()

Returns the current head mounted display this view is rendering for.

Contains various parameters about the screen and GVR viewer that combined make up the head mounted display.

Changes to the returned object do not have any effect on rendering.

Returns public float getInterpupillaryDistance ()

Gets the interpupillary distance. The GVR framework currently assumes that user IPD matches inter-lens distance of the viewer.

Returns public float getNeckModelFactor ()

Gets the neck model factor for head tracking.

Refer to {link #setNeckModelEnabled()} for more detail on neck model and {link #setNeckModelFactor()} for more detail on neck model factor.

Returns public ScreenParams getScreenParams () Returns public boolean getStereoModeEnabled ()

Returns the current stereo mode setting.

Returns public void onBackPressed ()

Optional hook the client can trigger from Activity.onBackPressed().

This will invoke the currently configured "close" behavior for the view. For Daydream-compatible Activities this will quit VR and restore the Android launcher. If the user has configured an override for the close button behavior, that action will be invoked. Otherwise, this call will simply invoke Activity.finish().

public void onPause ()

Informs the view that the activity has been paused.

public void onResume ()

Informs the view that the activity has been resumed.

public void queueEvent (Runnable r)

Queue a runnable to be run on the GL rendering thread. This can be used to communicate with the Renderer on the rendering thread. If the renderer has not been set, the task will be run synchronously.

Parameters r The Runnable to be run on the GL rendering thread. public void recenterHeadTracker ()

Recenters the head orientation (resets the yaw to zero, leaving pitch and roll unmodified).

This will make the scene's Z axis align with the current phone heading (compass direction). In other words, after calling this method, the direction that the user is currently looking at will be redefined as "forward" (zero yaw). Pitch and roll are not modified.

Warning: This method must only be used by Cardboard apps. Do not call this on Daydream apps. On the Daydream platform, recentering is handled automatically and should never be programatically triggered by apps. Hybrid apps that work both in Cardboard and Daydream mode must only call this method when in Cardboard mode (that is, when the phone is paired with a Cardboard viewer), never in Daydream mode.

public void resetHeadTracker ()

This method was deprecated in API level .
This method will be removed in future versions of this API. All uses of this method can be safely replaced with calls to recenterHeadTracker().

Ask the head-tracker to reset itself.

This method is deprecated. Use recenterHeadTracker() instead, which accomplishes the same effects but avoids the undesirable side-effects of a full reset (temporary loss of tracking quality).

Among other things, this will make the scene's Z axis align with the current phone heading (compass direction). Warning resetHeadTracker() wipes out all the head-tracking state, so recenterHeadTracker() should be used instead in most cases.

Warning: This method must only be used by Cardboard apps. Do not call this on Daydream apps. On the Daydream platform, recentering is handled automatically and should never be programatically triggered by apps. Hybrid apps that work both in Cardboard and Daydream mode must only call this method when in Cardboard mode (that is, when the phone is paired with a Cardboard viewer), never in Daydream mode.

public boolean setAsyncReprojectionEnabled (boolean enabled)

Enables or disables asynchronous reprojection.

Must be called on the UI thread. If enabled, buffers will be submitted to an asynchronous thread, for stabilized reprojection and rendering.

Note: Async reprojection may not be available on every platform. Once enabled, async reprojection cannot be disabled.

Parameters enabled true to enable asynchronous reprojection, false to disable. Returns public void setDepthStencilFormat (int format)

Sets the depth and stencil widths for the offscreen framebuffer.

Note that this applies to the framebuffer that the app renders to, not the window's backbuffer.

If this method is called, it must be called before setRenderer(Renderer) is called.

public void setDistortionCorrectionEnabled (boolean enabled)

Sets whether distortion correction is enabled.

Enabled by default. Changes will be effective from the first frame after this call.

Parameters enabled true to enable distortion correction, false to disable. public void setEGLConfigChooser (int redSize, int greenSize, int blueSize, int alphaSize, int depthSize, int stencilSize)

Install a config chooser which will choose a config with at least the specified depthSize and stencilSize, and exactly the specified redSize, greenSize, blueSize and alphaSize.

If this method is called, it must be called before setRenderer(Renderer) is called.

If this method is not called, then by default the view will choose an RGB_888 surface with a depth buffer depth of at least 16 bits.

Parameters redSize greenSize blueSize alphaSize depthSize stencilSize public void setEGLContextClientVersion (int version)

Sets the desired EGLContext version to use.

If this method is called, it must be called before setRenderer(Renderer) is called. If this function is not called, OpenGL ES 2.0 is used.

Parameters version The EGLContext client version to choose. Use 2 for OpenGL ES 2.0. public void setMultisampling (int numSamples)

Sets the number of samples per pixel, for multisampling. Multisampling is disabled by default.

Note that this applies to the framebuffer that the app renders to, not the window's backbuffer.

If this method is called, it must be called before setRenderer(Renderer) is called.

If this method is called, it is recommended to reduce the distortion correction scale via setRenderTargetScale(float) to improve performance.

Parameters numSamples The number of samples to use. 0 and 1 indicate that multisampling should be disabled. public void setNeckModelEnabled (boolean enabled)

Fully enables or disables use of the neck model for head tracking.

The neck model simulates how head rotations naturally happen relative to the base of the neck, not around the midpoint between the eyes, causing translational viewpoint movement in addition to rotation.

Parameters enabled true to enable the neck model, false to disable. It is equivalent to calling setNeckModelFactor(enabled ? 1.0 : 0.0). public void setNeckModelFactor (float factor)

Sets the neck model factor for head tracking.

Refer to {link #setNeckModelEnabled()} for more detail on neck model.

Parameters factor Neck model factor between 0.0f and 1.0f. Set factor to 0.0f will completely disable the neck model, and 1.0f will completely activate the neck model. Value beturn 0.0f and 1.0f will partially use the neck model by linear interpolating the full neck model and no neck model according to the factor value. public void setOnCardboardTriggerListener (Runnable listener)

Sets a runnable that gets called back whenever a Cardboard trigger event occurs.

This is only useful if you're not using GvrActivity and want to handle trigger events at the GvrView level. If you're using GvrActivity, then it's recommended to use the onCardboardTrigger method from GvrActivity instead of using this function.

Parameters listener Runnable that gets called back whenever a Cardboard trigger event occurs. public void setOnCloseButtonListener (Runnable listener)

Sets a runnable 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 setOnTransitionViewDoneListener (Runnable listener)

Sets a runnable that gets called back when users have gone through the transition view.

This must be called from the UI thread.

Note: Transition view behavior can vary for Daydream Activities and viewers, and it cannot be assumed that the transition view will be displayed to the user in all cases. As such, this callback should not be used to gate any critical functionality or logic.

Parameters listener Runnable called on the UI thread when the transition view is dismissed. public void setRenderTargetScale (float scale)

Sets the scaling factor for the buffer that the app renders to.

Sets the factor by which we multiply the resolution of the image we render off-screen before passing it into the DistortionRenderer. This factor must be greater than 0.0 and at most 1.0. The renderer's onDrawFrame method will receive a Viewport with size (W * scale) x (H * scale) where W and H is the full size of the render target. When set to 1.0, the scene is rendered at approximately 150% of the device's display resolution. This results in a 1-to-1 pixel size ratio at the center of the distorted image but has a significant performance impact.

This factor has no effect if distortion correction is not enabled.

1.0 by default. Changes will be effective from the first frame after this call.

Parameters scale The factor by which the resolution is multiplied. Greater than 0.0 and at most 1.0. public void setRenderer (GvrView.StereoRenderer renderer)

Sets a renderer that delegates all details about stereoscopic rendering to the view.

Only one renderer should be set during the entire lifetime of this object. See the StereoRenderer interface for details.

Parameters renderer Stereo renderer to set. Cannot be null. public void setRenderer (GvrView.Renderer renderer)

Sets a renderer that handles all stereoscoping rendering details by itself.

Only one renderer should be set during the entire lifetime of this object. See the Renderer interface for details.

Parameters renderer Renderer to set. Cannot be null. public void setStereoModeEnabled (boolean enabled)

Enables or disables stereo rendering mode.

Controls stereo rendering and distortion correction. Enabled by default. Changes will be effective from the first frame after this call.

If disabled, no interpupillary distance will be applied to the eye transformations, automatic distortion correction will not take place, field of view and perspective may look off especially if the view is not set to fullscreen. Changes will be applied to the next frames being drawn.

See the documentation of the Renderer and StereoRenderer interfaces for details on how they are affected by stereo mode.

Parameters enabled true to enable stereo mode, false to disable. public void setTransitionViewEnabled (boolean enabled)

Enables/disables the transition view used to prompt the user to place their phone into a GVR viewer.

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

Parameters enabled Whether the transition view is enabled. Disabled by default. public void shutdown ()

Shuts down the GvrView implementation, freeing associated resources.

This method should typically be called from the hosting activity's onDestroy() method.

Note: This method should *always* be called by the creator to properly dispose of resources. After shutdown, the caller is responsible for ensuring that the GvrView instance is no longer explicitly used.

public void updateGvrViewerParams (GvrViewerParams gvrViewerParams)

Updates the physical parameters of the GVR viewer used for rendering.

Changes will be effective from the first frame after this call until the next call to onResume(). The caller is responsible for injecting the parameters again after onResume().

Note: This method is only supported when using a Cardboard headset, and only updates the parameters for the current application.

Parameters gvrViewerParams Physical parameters of a GVR-compatible viewer. Ignores the request if the object is null or same as current. public void updateScreenParams (ScreenParams screenParams)

Updates the screen parameters used for rendering.

Updates the screen parameters of the display inserted in the Cardboard. Changes will be effective from the first frame after this call until the next call to onResume(). The caller is responsible for injecting the parameters again after onResume().

Note: This method is only supported when using a Cardboard headset, and only updates the parameters for the current application.

Parameters screenParams Parameters to update. Ignored if null.

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."],[[["`GvrView` is an Android View designed for VR rendering in fullscreen, supporting landscape orientations and offering two rendering interfaces: `GvrView.StereoRenderer` and `GvrView.Renderer`."],["Developers can switch between stereo and mono rendering modes, enable Cardboard trigger emulation, control asynchronous reprojection, and manage distortion correction using provided methods."],["Key methods include `setStereoModeEnabled()`, `enableCardboardTriggerEmulation()`, `setAsyncReprojectionEnabled()`, `setDistortionCorrectionEnabled()`, `onPause()`, `onResume()`, and others for managing various aspects of the VR experience."],["`GvrView` provides a foundation for building VR applications on Android, handling key aspects like rendering, head tracking, and stereo/mono modes for full-screen, landscape-oriented VR experiences."],["While offering flexibility in rendering approaches, `GvrView` encourages the use of the simpler `GvrView.StereoRenderer` interface for easier development."]]],["`GvrView` is a `View` for VR rendering, offering `StereoRenderer` for stereoscopic rendering and `Renderer` for manual control. Key features include switching between stereo/mono modes, managing distortion correction and asynchronous reprojection, setting rendering target scale, and controlling head tracking with recentering. It handles Cardboard trigger events and allows updates to viewer/screen parameters. Additional functionalities include lifecycle methods (pause/resume), queueing GL events, shutting down, getting gvrApi and HeadMountedDisplay and setting close button/transition view listener.\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