Una SurfaceView que se integra con ARCore y renderiza una escena
Constantes heredadas
int | ACCESSIBILITY_LIVE_REGION_ASSERTIVE | |
int32 | 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 | |
int32 | AUTOFILL_TYPE_DATE | |
int32 | AUTOFILL_TYPE_LIST | |
int | AUTOFILL_TYPE_NONE | |
int | AUTOFILL_TYPE_TEXT | |
int32 | AUTOFILL_TYPE_TOGGLE | |
int32 | DRAG_FLAG_GLOBAL | |
int32 | DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION | |
int32 | DRAG_FLAG_GLOBAL_PREFIX_URI_PERMISSION | |
int32 | DRAG_FLAG_GLOBAL_URI_READ | |
int32 | DRAG_FLAG_GLOBAL_URI_WRITE | |
int32 | DRAG_FLAG_OPAQUE | |
int32 | DRAWING_CACHE_QUALITY_AUTO | |
int32 | DRAWING_CACHE_QUALITY_HIGH | |
int32 | DRAWING_CACHE_QUALITY_LOW | |
int32 | FIND_VIEWS_WITH_CONTENT_DESCRIPTION | |
int32 | FIND_VIEWS_WITH_TEXT | |
int | FOCUSABLE | |
int | FOCUSABLES_ALL | |
int32 | FOCUSABLES_TOUCH_MODE | |
int32 | FOCUSABLE_AUTO | |
int32 | FOCUS_BACKWARD | |
int32 | FOCUS_DOWN | |
int | FOCUS_FORWARD | |
int32 | FOCUS_LEFT | |
int | FOCUS_RIGHT | |
int32 | FOCUS_UP | |
int | No disponible | |
int | HAPTIC_FEEDBACK_ENABLED | |
int32 | IMPORTANT_FOR_ACCESSIBILITY_AUTO | |
int32 | IMPORTANT_FOR_ACCESSIBILITY_NO | |
int | IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS | |
int | IMPORTANT_FOR_ACCESSIBILITY_YES | |
int32 | IMPORTANT_FOR_AUTOFILL_AUTO | |
int32 | IMPORTANT_FOR_AUTOFILL_NO | |
int32 | IMPORTANT_FOR_AUTOFILL_NO_EXCLUDE_DESCENDANTS | |
int | IMPORTANT_FOR_AUTOFILL_YES | |
int | IMPORTANT_FOR_AUTOFILL_YES_EXCLUDE_DESCENDANTS | |
int | Invisible | |
int32 | 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 | |
int32 | 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 | |
int32 | OVER_SCROLL_NEVER | |
int32 | SCREEN_STATE_OFF | |
int | SCREEN_STATE_ON | |
int | SCROLLBARS_INSIDE_INSET | |
int32 | SCROLLBARS_INSIDE_OVERLAY | |
int | SCROLLBARS_OUTSIDE_INSET | |
int32 | SCROLLBARS_OUTSIDE_OVERLAY | |
int | SCROLLBAR_POSITION_DEFAULT | |
int | SCROLLBAR_POSITION_LEFT | |
int | SCROLLBAR_POSITION_RIGHT | |
int | SCROLL_AXIS_HORIZONTAL | |
int | SCROLL_AXIS_NONE | |
int32 | SCROLL_AXIS_VERTICAL | |
int32 | SCROLL_INDICATOR_BOTTOM | |
int32 | SCROLL_INDICATOR_END | |
int32 | SCROLL_INDICATOR_LEFT | |
int | SCROLL_INDICATOR_RIGHT | |
int | SCROLL_INDICATOR_START | |
int32 | SCROLL_INDICATOR_TOP | |
int32 | SOUND_EFFECTS_ENABLED | |
int | STATUS_BAR_HIDDEN | |
int | STATUS_BAR_VISIBLE | |
int | SYSTEM_UI_FLAG_FULLSCREEN | |
int | SYSTEM_UI_FLAG_HIDE_NAVIGATION | |
int32 | SYSTEM_UI_FLAG_IMMERSIVE | |
int32 | SYSTEM_UI_FLAG_IMMERSIVE_STICKY | |
int32 | SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | |
int32 | 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 | |
int32 | TEXT_ALIGNMENT_CENTER | |
int | TEXT_ALIGNMENT_GRAVITY | |
int | TEXT_ALIGNMENT_INHERIT | |
int32 | TEXT_ALIGNMENT_TEXT_END | |
int32 | TEXT_ALIGNMENT_TEXT_START | |
int | TEXT_ALIGNMENT_VIEW_END | |
int32 | TEXT_ALIGNMENT_VIEW_START | |
int32 | TEXT_DIRECTION_ANY_RTL | |
int | TEXT_DIRECTION_FIRST_STRONG | |
int | TEXT_DIRECTION_FIRST_STRONG_LTR | |
int32 | TEXT_DIRECTION_FIRST_STRONG_RTL | |
int | TEXT_DIRECTION_INHERIT | |
int | TEXT_DIRECTION_LOCALE | |
int32 | TEXT_DIRECTION_LTR | |
int32 | TEXT_DIRECTION_RTL | |
String | VER_LOG_TAG | |
int | Visible |
Campos heredados
Propiedad final estática pública, Vista, Flotante | ALFA | |
int. estático estático protegido | EMPTY_STATE_SET | |
int. estático estático protegido | ACTIVADO_FOCUSED_SELECTED_STATE_SET | |
int. estático estático protegido | ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET | |
int. estático estático protegido | ACTIVADO_FOCUSED_STATE_SET | |
int. estático estático protegido | ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET | |
int. estático estático protegido | ACTIVADO_SELECTED_STATE_SET | |
int. estático estático protegido | HABILITADO_SELECTED_WINDOW_FOCUSED_STATE_SET | |
int. estático estático protegido | ACTIVADO_ESTADO_DE_ESTADO | |
int. estático estático protegido | HABILITADO_WINDOW_FOCUSED_STATE_SET | |
int. estático estático protegido | FOCUSED_SELECTED_STATE_SET | |
int. estático estático protegido | FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET | |
int. estático estático protegido | FOCUSED_STATE_SET | |
int. estático estático protegido | FOCUSED_WINDOW_FOCUSED_STATE_SET | |
int. estático estático protegido | PRESSED_ENABLED_FOCUSED_SELECTED_STATE_SET | |
int. estático estático protegido | PRESSED_ENABLED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET | |
int. estático estático protegido | PRESSED_ENABLED_FOCUSED_STATE_SET | |
int. estático estático protegido | PRESSED_ENABLED_FOCUSED_WINDOW_FOCUSED_STATE_SET | |
int. estático estático protegido | PRESSED_ENABLED_SELECTED_STATE_SET | |
int. estático estático protegido | PRESSED_ENABLED_SELECTED_WINDOW_FOCUSED_STATE_SET | |
int. estático estático protegido | PRESSED_ENABLED_STATE_SET | |
int. estático estático protegido | PRESSED_ENABLED_WINDOW_FOCUSED_STATE_SET | |
int. estático estático protegido | PRESSED_FOCUSED_SELECTED_STATE_SET | |
int. estático estático protegido | PRESSED_FOCUSED_SELECTED_WINDOW_FOCUSED_STATE_SET | |
int. estático estático protegido | PRESSED_FOCUSED_STATE_SET | |
int. estático estático protegido | PRESSED_FOCUSED_WINDOW_FOCUSED_STATE_SET | |
int. estático estático protegido | PRESSED_SELECTED_STATE_SET | |
int. estático estático protegido | PRESSED_SELECTED_WINDOW_FOCUSED_STATE_SET | |
int. estático estático protegido | PRESSED_STATE_SET | |
int. estático estático protegido | PRESSED_WINDOW_FOCUSED_STATE_SET | |
Propiedad final estática pública, Vista, Flotante | Rotación | |
Propiedad final estática pública, Vista, Flotante | ROTATION_X | |
Propiedad final estática pública, Vista, Flotante | ROTATION_Y | |
Propiedad final estática pública, Vista, Flotante | SCALE_X | |
Propiedad final estática pública, Vista, Flotante | SCALE_Y | |
int. estático estático protegido | SELECTED_STATE_SET | |
int. estático estático protegido | SELECTED_WINDOW_FOCUSED_STATE_SET | |
Propiedad final estática pública, Vista, Flotante | TRANSLATION_X | |
Propiedad final estática pública, Vista, Flotante | TRANSLATION_Y | |
Propiedad final estática pública, Vista, Flotante | TRANSLATION_Z | |
int. estático estático protegido | WINDOW_FOCUSED_STATE_SET | |
Propiedad final estática pública, Vista, Flotante | X | |
Propiedad final estática pública, Vista, Flotante | SÍ | |
Propiedad final estática pública, Vista, Flotante | Z |
Constructores públicos
ArSceneView(contexto Context)
Construye un objeto ArSceneView y lo vincula a un contexto de Android.
|
|
ArSceneView(contexto Context, atributos AttributeSet)
Construye un objeto ArSceneView y lo vincula a un contexto de Android.
|
Métodos públicos
Marco |
getArFrame()
Muestra el ARCore Frame más reciente si está disponible.
|
int |
getCameraStreamRenderPriority()
Obtén la prioridad de renderización que controla el orden de procesamiento de la transmisión de la cámara.
|
PlaneRenderer |
getPlaneRenderer()
Muestra PlaneRenderer, que se usa para controlar la visualización del plano.
|
Sesión |
getSession()
Muestra la sesión de ARCore que usa esta vista.
|
boolean |
isEnvironmentalHdrLightingAvailable()
Muestra true si la cámara ARCore está configurada con Config.LightEstimationMode.ENVIRONMENTAL_HDR.
|
boolean |
isLightDirectionUpdateEnabled()
Verifica si la luz solar se actualiza en cada fotograma según la estimación de iluminación HDR ambiental.
|
boolean | |
void |
Pausar()
Pausa el subproceso de procesamiento y la sesión de ARCore.
|
CompletableFutureVoid |
pauseAsync(ejecutor Executor)
Llamada sin bloqueo para pausar el subproceso de procesamiento y la sesión de ARCore.
|
void |
reanudar()
Reanuda el subproceso de procesamiento y la sesión de ARCore.
|
CompletableFutureVoid |
resumeAsync(ejecutor Executor)
Llamada sin bloqueo para reanudar el subproceso de procesamiento y la sesión de ARCore en segundo plano
Se debe llamar desde onResume(). |
void |
setCameraStreamRenderPriority(prioridad int)
Establece la prioridad de renderización para controlar el orden en que se renderiza la transmisión de la cámara.
|
void |
setLightDirectionUpdateEnabled(boolean isLightDirectionUpdateEnabled)
Establece si se debe actualizar la dirección de la luz solar generada a partir de la iluminación HDR ambiental en cada fotograma.
|
void |
setLightEstimationEnabled(booleano habilitado)
Habilita la estimación de la luz según el feed de la cámara.
|
void |
Métodos heredados
void |
destroy()
Se requiere para salir de Sceneform.
|
vacío estático |
destroyAllResources().
Libera inmediatamente todos los recursos de procesamiento, incluso si están en uso.
|
void |
enableDebug(booleano habilitado)
Si se habilita, proporciona varias visualizaciones para la depuración.
|
Escena |
getScene()
Muestra la Escena de Sceneform que creó esta vista.
|
boolean |
isDebugEnabled()
Indica si la depuración está habilitada para esta vista.
|
boolean | |
void |
Pausar()
Pausar Sceneform, que pausa el subproceso de procesamiento.
|
largo estático |
reclaimReleasedResources()
Libera los recursos de procesamiento listos para la recolección de elementos no utilizados.
Se llama a todos los fotogramas para recopilar los recursos que no se usan. |
void |
reanudar()
Resume Sceneform, que reanuda el subproceso de procesamiento.
|
void |
setAnimationTimeTransformer(SceneView.AnimationTimeTransformer animaciónTimeTransformer)
Para controlar la velocidad de reproducción de animaciones, el cliente
SceneView puede proporcionar una función que muestre la hora de actualizar la hora del cursor de la animación global. |
void | |
void |
startMirroringToSurface(superficie Surface, int left, int bottom, int width, int height)
Para capturar el contenido de esta vista, designa un
Surface en el que se debe duplicar esta SceneView. |
void |
stopMirroringToSurface(plataforma Surface)
Cuando finalice la captura, llama a este método para detener la duplicación de SceneView en el
Surface especificado. |
void |
dispatchDraw(Canvas arg0)
|
void |
draw(lienzo arg0)
|
boolean |
gatherTransparentRegion(Región arg0)
|
SurfaceHolder; |
getHolder()
|
Control de la superficie |
getSurfaceControl().
|
void |
onAttachedToWindow()
|
void |
onDetachedFromWindow()
|
void |
onMeasure(int arg0, int arg1)
|
void |
onWindowVisibilityChanged(int arg0)
|
void |
setSecure(argumento booleano)
|
void |
setVisibility(int arg0)
|
void |
setZOrderMediaOverlay(argumento booleano)
|
void |
setZOrderOnTop(argumento booleano)
|
void | |
void | |
void | |
void | |
void | |
void |
addOnAttachStateChangeListener(View.OnAttachStateChangeListener arg0)
|
void |
addOnLayoutChangeListener(View.OnLayoutChangeListener arg0)
|
void |
addOnUnhandledKeyEventListener(View.OnUnhandledKeyEventListener arg0)
|
void | |
ViewPropertyAnimator |
animar()
|
void |
announceForAccessibility(CharSequence arg0)
|
void |
autofill(AutofillValue arg0)
|
void |
autocompletar(SparseArray<AutofillValue> arg0)
|
boolean |
awakenScrollBars(int arg0, argumento booleano 1)
|
boolean |
awakenScrollBars(int arg0)
|
boolean |
awakenScrollBars()
|
void |
bringToFront()
|
void |
buildDrawingCache(argumento booleano)
|
void |
buildDrawingCache().
|
void |
buildLayer().
|
boolean |
callOnClick().
|
boolean |
canResolveLayoutDirection()
|
boolean |
canResolveTextAlignment()
|
boolean |
canResolveTextDirection()
|
boolean |
canScrollHorizontally(int arg0)
|
boolean |
canScrollVertical(int arg0)
|
vacío final |
cancelDragAndDrop()
|
void |
cancelLongPress()
|
vacío final |
cancelPendingInputEvents()
|
boolean |
checkInputConnectionProxy(Ver arg0)
|
void |
clearAnimation()
|
void |
clearFocus()
|
int estático |
combineMeasuredStates(int arg0, int arg1)
|
int |
computeHorizontalScrollExtent()
|
int |
computeHorizontalScrollOffset()
|
int |
computeHorizontalScrollRange()
|
void |
computeScroll()
|
WindowInsets | |
int |
computeVerticalScrollExtent()
|
int |
computeVerticalScrollOffset()
|
int |
computeVerticalScrollRange()
|
AccessibilityNodeInfo. |
createAccessibilityNodeInfo()
|
void |
createContextMenu(ContextMenu arg0)
|
void |
destroyDrawingCache().
|
WindowInsets |
dispatchApplyWindowInsets(WindowInsets arg0)
|
boolean |
dispatchCapturedPointerEvent(MotionEvent arg0)
|
void |
dispatchConfigurationChanged(Configuración arg0)
|
void |
dispatchDisplayHint(int arg0)
|
boolean |
dispatchDragEvent(DragEvent arg0)
|
void |
dispatchDraw(Canvas arg0)
|
void |
dispatchDrawableHotspotChanged(float arg0, float arg1)
|
void |
dispatchFinishTemporaryDetach()
|
boolean |
dispatchGenericFocusedEvent(MotionEvent arg0)
|
boolean |
dispatchGenericMotionEvent(MotionEvent arg0)
|
boolean |
dispatchGenericPointerEvent(MotionEvent arg0)
|
boolean |
dispatchHoverEvent(MotionEvent arg0)
|
boolean |
dispatchKeyEvent(KeyEvent arg0)
|
boolean |
dispatchKeyEventPreIme(KeyEvent arg0)
|
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(argumento booleano)
|
boolean |
dispatchPopulaAccessibilityEvent(AccessibilityEvent arg0)
|
void |
dispatchProvideAutofillStructure(ViewStructure arg0, int arg1)
|
void |
dispatchProvideStructure(ViewStructure arg0)
|
void | |
void | |
void |
dispatchSetActivated(argumento booleano)
|
void |
dispatchSetPressed(argumento booleano)
|
void |
dispatchSetSelected(argumento booleano)
|
void |
dispatchStartTemporaryDetach()
|
void |
dispatchSystemUiVisibilityChanged(int arg0)
|
boolean |
dispatchTouchEvent(MotionEvent arg0)
|
boolean |
dispatchTrackballEvent(MotionEvent arg0)
|
boolean |
dispatchUnhandledMove(View arg0, int arg1)
|
void |
dispatchVisibilityChanged(Ver arg0, int arg1)
|
void |
dispatchWindowFocusChanged(argumento booleano)
|
void |
dispatchWindowSystemUiVisiblityChanged(int arg0)
|
void |
dispatchWindowVisibilityChanged(int arg0)
|
void |
draw(lienzo arg0)
|
void |
drawableHotspotChanged(argumento flotante, argumento flotante1)
|
void |
drawableStateChanged()
|
Ver |
findFocus()
|
La v< final T extiende Ver> T |
findViewById(int arg0)
|
La v< final T extiende Ver> T |
findViewWithTag(Objeto arg0)
|
void | |
boolean |
fitSystemWindows(Rect)
|
Ver |
focusSearch(int arg0)
|
void |
forceHasOverlaypingRendering(argumento booleano)
|
void |
forceLayout().
|
int estático |
generateViewId()
|
CharSequence |
getAccessibilityClassName().
|
View.AccessibilityDelegate |
getAccessibilityDelegate()
|
int |
getAccessibilityLiveRegion()
|
AccessibilityNodeProvider. |
getAccessibilityNodeProvider().
|
CharSequence |
getAccessibilityPaneTitle()
|
int |
getAccessibilityTraversalAfter().
|
int |
getAccessibilityTraversalBefore()
|
float |
getAlpha().
|
Animación |
getAnimation().
|
Matriz |
getAnimationMatrix().
|
IBinder |
getApplicationWindowToken()
|
int[] |
getAttributeResolutionStack(int arg0)
|
Mapa<Integer, Integer> |
getAttributeSourceResourceMap()
|
String[] |
getAutofillHints()
|
AutofillId final |
getAutofillId().
|
int |
getAutofillType()
|
Valor de Autocompletar |
getAutofillValue()
|
Elemento de diseño |
getBackground()
|
Modo de fusión |
getBackgroundTintBlendMode()
|
ColorStateList |
getBackgroundTintList()
|
PorterDuff.Mode. |
getBackgroundTintMode()
|
int |
getBaseline()
|
int final |
getBottom()
|
float |
getBottomFadingEdgeStrength()
|
int |
getBottomPaddingOffset()
|
float |
getCameraDistance()
|
boolean |
getClipBounds(Rect)
|
Recta |
getClipBounds()
|
Booleano final |
getClipToOutline()
|
ContentCaptureSession final |
getContentCaptureSession()
|
CharSequence |
getContentDescription.
|
Context final |
getContext()
|
ContextMenu.ContextMenuInfo |
getContextMenuInfo()
|
Booleano final |
getDefaultFocushighlightEnabled()
|
int estático |
getDefaultSize (int arg0, int arg1)
|
Pantalla |
getDisplay()
|
int final[] |
getDrawableState()
|
Mapa de bits |
getDrawingCache().
|
Mapa de bits |
getDrawingCache(argumento booleano)
|
int |
getDrawingCacheBackgroundColor().
|
int |
getDrawingCacheQuality().
|
void |
getDrawingRect(Rect)
|
long |
getDrawingTime().
|
float |
getElevation()
|
int |
getExplicitStyle()
|
boolean |
getFilterTouchesWhenObscured()
|
boolean |
getFitsSystemWindows()
|
int |
getFocusable()
|
ArrayList<Ver> |
getFocusables(int arg0)
|
void |
getFocusedRect(Rect)
|
Elemento de diseño |
getForeground()
|
int |
getForegroundGravity()
|
Modo de fusión |
getForegroundTintBlendMode()
|
ColorStateList |
getForegroundTintList()
|
PorterDuff.Mode. |
getForegroundTintMode()
|
Booleano final |
getGlobalVisibleRect(Rect)
|
boolean | |
Controlador |
getHandler()
|
Booleano final |
getHasOverlaypingRendering()
|
int final |
Obtener altura()
|
void |
getHitRect(Rect)
|
int |
getHorizontalFadingEdgeLength()
|
int |
getHorizontalScrollbarHeight()
|
Elemento de diseño |
getHorizontalScrollbarThumbDrawable()
|
Elemento de diseño |
getHorizontalScrollbarTrackDrawable()
|
int |
getId().
|
int |
getImportantForAccessibility()
|
int |
getImportantForAutofill()
|
boolean |
getKeepScreenOn()
|
KeyEvent.DispatcherState |
getKeyDispatcherState()
|
int |
getLabelFor()
|
int |
getLayerType().
|
int |
getLayoutDirection()
|
ViewGroup.LayoutParams. |
getLayoutParams()
|
int final |
getLeft().
|
float |
getLeftFadingEdgeStrength()
|
int |
getLeftPaddingOffset()
|
Booleano final |
getLocalVisibleRect(Rect)
|
void |
getLocationInSurface(int[] arg0)
|
void |
getLocationInWindow(int[] arg0)
|
void |
getLocationOnScreen(int[] arg0)
|
Matriz |
getMatrix()
|
int final |
getMeasuredHeight()
|
int final |
getMeasuredHeightAndState()
|
int final |
getMeasuredState()
|
int final |
getMeasuredWidth()
|
int final |
getMeasuredWidthAndState()
|
int |
getMinimumHeight()
|
int |
getMinimumWidth()
|
int |
getNextClusterForwardId()
|
int |
getNextFocusDownId()
|
int |
getNextFocusForwardId()
|
int |
getNextFocusLeftId()
|
int |
getNextFocusRightId()
|
int |
getNextFocusUpId()
|
View.OnFocusChangeListener. |
getOnFocusChangeListener().
|
int |
getOutlineAmbientShadownColor()
|
ViewOutlineProvider. |
getOutlineProvider().
|
int |
getOutlineSpotShadowColor()
|
int |
getOverScrollMode()
|
ViewOverlay; |
getOverlay().
|
int |
getPaddingBottom()
|
int |
getPaddingEnd()
|
int |
getPaddingLeft()
|
int |
getPaddingRight()
|
int |
getPaddingStart()
|
int |
getPaddingTop()
|
ViewParent final |
getParent().
|
ViewParent. |
getParentForAccessibility()
|
float |
getPivotX()
|
float |
getPivotY()
|
Ícono de puntero |
getPointerIcon()
|
Recursos |
getResources()
|
Booleano final |
getRevealOnFocusHint()
|
int final |
getRight()
|
float |
getRightFadingEdgeStrength()
|
int |
getRightPaddingOffset()
|
Ver |
getRootView()
|
WindowInsets |
getRootWindowInsets().
|
float |
getRotation()
|
float |
getRotationX()
|
float |
getRotationY()
|
float |
getScaleX()
|
float |
getScaleY()
|
int |
getScrollBarDefaultDelayBeforeFade()
|
int |
getScrollBarFadeDuration()
|
int |
getScrollBarSize()
|
int |
getScrollBarStyle()
|
int |
getScrollIndicators()
|
int final |
getScrollX()
|
int final |
getScrollY()
|
int |
getSolidColor()
|
int |
getSourceLayoutResId()
|
StateListAnimator |
getStateListAnimator()
|
int |
getSuggestedMinimumHeight()
|
int |
getSuggestedMinimumWidth()
|
Lista▭Rect> |
getSystemGestureExclusionRects().
|
int |
getSystemUiVisibility()
|
Objeto |
getTag().
|
Objeto |
getTag(int arg0)
|
int |
getTextAlignment()
|
int |
getTextDirection()
|
CharSequence |
getTooltipText()
|
int final |
getTop()
|
float |
getTopFadingEdgeStrength()
|
int |
getTopPaddingOffset()
|
TouchDelegate |
getTouchDelegate()
|
ArrayList<Ver> |
getTouchables()
|
float |
getTransitionAlpha()
|
String |
getTransitionName().
|
float |
getTranslationX().
|
float |
getTranslationY()
|
float |
getTranslationZ().
|
long |
getUniqueDrawingId().
|
int |
getVerticalFadingEdgeLength()
|
int |
getVerticalScrollbarPosition()
|
Elemento de diseño |
getVerticalScrollbarThumbDrawable()
|
Elemento de diseño |
getVerticalScrollbarTrackDrawable()
|
int |
getVerticalScrollbarWidth()
|
ViewTreeObserver |
getViewTreeObserver()
|
int |
getVisibility()
|
int final |
getWidth()
|
int |
getWindowAttachCount().
|
WindowId |
getWindowId().
|
int |
getWindowSystemUiVisibility()
|
IBinder |
getWindowToken()
|
int |
getWindowVisibility()
|
void |
getWindowVisibleDisplayFrame(Rect)
|
float |
getX()
|
float |
getY()
|
float |
getZ().
|
boolean |
hasExplicitFocusable()
|
boolean |
hasFocus()
|
boolean |
hasFocusable()
|
boolean |
hasNestedScrollingParent()
|
boolean |
hasOnClickListeners().
|
boolean |
hasOverlaypingRendering()
|
boolean |
hasPointerCapture().
|
boolean |
hasTransientState()
|
boolean |
hasWindowFocus().
|
View estática | |
void |
invalidate()
|
void |
invalidate(Rect)
|
void |
invalidate(int arg0, int arg1, int arg2, int arg3)
|
void |
invalidateDrawable(elemento de diseño arg0)
|
void |
invalidateOutline()
|
boolean |
isAccessibilityFocused()
|
boolean |
isAccessibilityHeading()
|
boolean |
se activa()
|
boolean |
isAttachedToWindow()
|
boolean |
isClickable()
|
boolean |
isContextClickable()
|
boolean |
isDirty()
|
boolean |
isDrawingCacheEnabled()
|
boolean |
isDuplicateParentStateEnabled().
|
boolean |
está habilitado()
|
Booleano final |
isFocusable()
|
Booleano final |
isFocusableInTouchMode().
|
boolean |
isFocused()
|
Booleano final |
isFocusedByDefault()
|
boolean |
isForceDarkAllowed()
|
boolean |
isHapticFeedbackEnabled()
|
boolean |
isHardwareAccelerated()
|
boolean |
isHorizontalFadingEdgeEnabled()
|
boolean |
isHorizontalScrollBarEnabled()
|
boolean |
isHovers()
|
boolean |
isImportantForAccessibility()
|
Booleano final |
isImportantForAutofill()
|
boolean |
isInEditMode()
|
boolean |
isInLayout()
|
boolean |
isInTouchMode()
|
Booleano final |
isKeyboardNavigationCluster()
|
boolean |
isLaidOut()
|
boolean |
isLayoutDirectionResolved()
|
boolean |
isLayoutRequested()
|
boolean |
isLongClickable()
|
boolean |
isNestedScrollingEnabled()
|
boolean |
isOpaque()
|
boolean |
isPaddingOffsetRequired()
|
boolean |
isPaddingRelative()
|
boolean |
isPivotSet()
|
boolean |
isPressed()
|
boolean |
isSaveEnabled()
|
boolean |
isSaveFromParentEnabled()
|
boolean |
isScreenReaderFocusable()
|
boolean |
isScrollContainer()
|
boolean |
isScrollbarFadingEnabled()
|
boolean |
está seleccionada()
|
boolean |
isShown()
|
boolean |
isSoundEffectsEnabled()
|
Booleano final |
isDisconnecteded()
|
boolean |
isTextAlignmentResolved()
|
boolean |
isTextDirectionResolved()
|
boolean |
isVerticalFadingEdgeEnabled()
|
boolean |
isVerticalScrollBarEnabled()
|
boolean |
isVisibleToUserForAutofill(int arg0)
|
void |
jumpDrawablesToCurrentState()
|
Ver |
keyboardNavigationClusterSearch(Ver arg0, int arg1)
|
void |
diseño(int arg0, int arg1, int arg2, int arg3)
|
vacío final |
medida(int arg0, int arg1)
|
int estático [] |
mergeDrawableStates(int[] arg0, int[] arg1)
|
void |
offsetLeftAndRight(int arg0)
|
void |
offsetTopAndBottom(int arg0)
|
void |
onAnimationEnd()
|
void |
onAnimationStart()
|
WindowInsets |
onApplyWindowInsets(WindowInsets)
|
void |
onAttachedToWindow()
|
void |
onCancelPendingInputEvents()
|
boolean |
onCapturedPointerEvent(MotionEvent)
|
boolean |
onCheckIsTextEditor()
|
void |
onConfigurationChanged(Configuración arg0)
|
void |
onCreateContextMenu(ContextMenu arg0)
|
int[] |
onCreateDrawableState(int arg0)
|
InputConnection |
onCreateInputConnection(EditorInfo arg0)
|
void |
onDetachedFromWindow()
|
void |
onDisplayHint(int arg0)
|
boolean |
onDragEvent(ArrastrarEvento arg0)
|
void |
onDraw(Canvas arg0)
|
void |
onDrawForeground(Lienzo arg0)
|
vacío final |
onDrawScrollBars(lienzo arg0)
|
boolean |
onFilterTouchEventForSecurity(MotionEvent)
|
void |
onFinishInflate()
|
void |
onFinishTemporaryDetach()
|
void |
onFocusChanged(argumento booleano, int arg1, Rect)
|
boolean |
onGenericMotionEvent(MotionEvent arg0)
|
void |
onHoverChanged(argumento booleano)
|
boolean |
onHoverEvent(MotionEvent)
|
void |
onInitializeAccessibilityEvent(AccessibilityEvent arg0)
|
void |
onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo arg0)
|
boolean |
onKeyDown(int arg0, KeyEvent arg1)
|
boolean |
onKeyLongPress(int arg0, KeyEvent arg1)
|
boolean |
onKeyMultiple(int arg0, int arg1, KeyEvent arg2)
|
boolean |
onKeyPreIme(int arg0, KeyEvent arg1)
|
boolean |
onKeyShortcut(int arg0, KeyEvent arg1)
|
boolean |
onKeyUp(int arg0, KeyEvent arg1)
|
void |
onLayout(argumento booleano, int arg1, int arg2, int arg3, int arg4)
|
void |
onMeasure(int arg0, int arg1)
|
void |
onOverScrolled(int arg0, int arg1), boolean arg2, boolean arg3
|
void |
onPointerCaptureChange(argumento booleano)
|
void |
onPopulaAccessibilityEvent(AccessibilityEvent arg0)
|
void |
onProvideAutofillStructure(ViewStructure arg0, int arg1)
|
void |
onProvideAutofillVirtualStructure(ViewStructure arg0, int arg1)
|
void |
onProvideStructure(ViewStructure arg0)
|
void |
onProvideVirtualStructure(ViewStructure arg0)
|
Ícono de puntero |
onResolvePointerIcon(MotionEvent arg0, int arg1)
|
void |
onRestoreInstanceState(Parcelable arg0)
|
void |
onRtlPropertiesChanged(int arg0)
|
Parcelable |
onSaveInstanceState().
|
void |
onScreenStateChanged(int arg0)
|
void |
onScrollChanged(int arg0, int arg1, int arg2, int arg3)
|
boolean |
onSetAlpha(int arg0)
|
void |
onSizeChanged(int arg0, int arg1, int arg2, int arg3)
|
void |
onStartTemporaryDetach()
|
boolean |
onTouchEvent(MotionEvent)
|
boolean |
onTrackballEvent(MotionEvent)
|
void |
onVisibilityAggregated(argumento booleano)
|
void |
onVisibilityChanged(Ver arg0, int arg1)
|
void |
onWindowFocusChanged(argumento booleano)
|
void |
onWindowSystemUiVisibilityChanged(int arg0)
|
void |
onWindowVisibilityChanged(int arg0)
|
boolean |
overScrollBy(int arg0, int arg1, int arg5, int arg3, int arg4, int arg5, int arg6)
|
boolean |
performAccessibilityAction(int arg0, Bundle arg1)
|
boolean |
performClick()
|
boolean |
performContextClick(argumento flotante, argumento flotante1)
|
boolean |
performContextClick()
|
boolean |
performHapticFeedback(int arg0)
|
boolean |
performHapticFeedback(int arg0, int arg1)
|
boolean |
performLongClick(argumento flotante, argumento flotante1)
|
boolean |
PerformLongClick()
|
void |
playSoundEffect(int arg0)
|
boolean |
post(Ejecutable arg0)
|
boolean |
postDelayed(Ejecutable arg0, argumento largo)
|
void |
postInvalidate()
|
void |
postInvalidate(int arg0, int arg1, int arg2, int arg3)
|
void |
postInvalidateDelayed(argumento largo, int arg1, int arg2, int arg3, int arg4)
|
void |
postInvalidateDelayed(argumento largo)
|
void |
postInvalidateOnAnimation(int arg0, int arg1, int arg2, int arg3)
|
void |
postInvalidateOnAnimation()
|
void |
postOnAnimation(Ejecutable arg0)
|
void |
postOnAnimationDelayed(Ejecutable arg0, argumento largo)
|
void |
refreshDrawableState()
|
void |
releasePointerCapture().
|
boolean |
removeCallbacks(Ejecutable arg0)
|
void |
removeOnAttachStateChangeListener(View.OnAttachStateChangeListener arg0)
|
void |
removeOnLayoutChangeListener(View.OnLayoutChangeListener arg0)
|
void |
removeOnUnhandledKeyEventListener(View.OnUnhandledKeyEventListener arg0)
|
void |
requestApplyInsets()
|
void |
requestFitSystemWindows()
|
Booleano final |
requestFocus(int arg0)
|
Booleano final |
requestFocus()
|
boolean |
requestFocus(int arg0, Rect)
|
Booleano final |
requestFocusFromTouch()
|
void |
requestLayout().
|
void |
requestPointerCapture().
|
boolean |
requestRectangleOnScreen(Rect)
|
boolean |
requestRectangleOnScreen(Rect arg0, boolean arg1)
|
vacío final |
requestUnbufferedDispatch(MotionEvent arg0)
|
La v< final T extiende Ver> T |
requireViewById(int arg0)
|
void |
resetPivot()
|
int estático |
resolveSize(int arg0, int arg1)
|
int estático |
resolveSizeAndState(int arg0, int arg1, int arg2)
|
boolean |
restoreDefaultFocus()
|
void | |
vacío final |
saveAttributeDataForStyleable(Contexto arg0, int[] arg1, AttributeSet arg2, TypedArray arg3, int arg4, int arg5)
|
void | |
void | |
void |
scrollBy(int arg0, int arg1)
|
void |
scrollTo(int arg0, int arg1)
|
void |
sendAccessibilityEvent(int arg0)
|
void |
sendAccessibilityEventUnchecked(AccessibilityEvent arg0)
|
void |
setAccessibilityDelegate(View.AccessibilityDelegate arg0)
|
void |
setAccessibilityHeading(argumento booleano)
|
void |
setAccessibilityLiveRegion(int arg0)
|
void |
setAccessibilityPaneTitle(CharSequence arg0)
|
void |
setAccessibilityTraversalAfter(int arg0)
|
void |
setAccessibilityTraversalBefore(int arg0)
|
void |
setActivated(argumento booleano)
|
void |
setAlpha(argumento flotante)
|
void |
setAnimation(Animación arg0)
|
void |
setAnimationMatrix(Matrix arg0)
|
void |
setAutofillHints(String... arg0)
|
void |
setAutofillId(AutofillId arg0)
|
void |
setBackground(elemento de diseño arg0)
|
void |
setBackgroundColor(int arg0)
|
void |
setBackgroundDrawable(elemento de diseño arg0)
|
void |
setBackgroundResource(int arg0)
|
void |
setBackgroundTintBlendMode(BlendMode arg0)
|
void |
setBackgroundTintList(ColorStateList arg0)
|
void |
setBackgroundTintMode(PorterDuff.Mode arg0)
|
vacío final |
setBottom(int arg0)
|
void |
setCameraDistance(argumento flotante)
|
void |
setClickable(argumento booleano)
|
void |
setClipBounds(Rect)
|
void |
setClipToOutline(argumento booleano)
|
void |
setContentCaptureSession(ContentCaptureSession arg0)
|
void |
setContentDescription(CharSequence arg0)
|
void |
setContextClickable(argumento booleano)
|
void |
setDefaultFocushighlightEnabled(argumento booleano)
|
void |
setDrawingCacheBackgroundColor(int arg0)
|
void |
setDrawingCacheEnabled(argumento booleano)
|
void |
setDrawingCacheQuality(int arg0)
|
void |
setDuplicateParentStateEnabled(argumento booleano)
|
void |
setElevation(float arg0)
|
void |
setEnabled(argumento booleano)
|
void |
setFadingEdgeLength(int arg0)
|
void |
setFilterTouchesWhenObscured(argumento booleano)
|
void |
setFitsSystemWindows(argumento booleano)
|
void |
setFocusable(argumento booleano)
|
void |
setFocusable(int arg0)
|
void |
setFocusableInTouchMode(argumento booleano)
|
void |
setFocusedByDefault(argumento booleano)
|
void |
setForceDarkAllowed(argumento booleano)
|
void |
setForeground(elemento de diseño arg0)
|
void |
setForegroundGravity(int arg0)
|
void |
setForegroundTintBlendMode(BlendMode arg0)
|
void |
setForegroundTintList(ColorStateList arg0)
|
void |
setForegroundTintMode(PorterDuff.Mode arg0)
|
void |
setHapticFeedbackEnabled(argumento booleano)
|
void |
setHasTransientState(argumento booleano)
|
void |
setHorizontalFadingEdgeEnabled(argumento booleano)
|
void |
setHorizontalScrollBarEnabled(boolean arg0)
|
void |
setHorizontalScrollbarThumbDrawable(elemento de diseño arg0)
|
void |
setHorizontalScrollbarTrackDrawable(elemento de diseño arg0)
|
void |
setHovers(argumento booleano)
|
void |
setId(int arg0)
|
void |
setImportantForAccessibility(int arg0)
|
void |
setImportantForAutofill(int arg0)
|
void |
setKeepScreenOn(argumento booleano)
|
void |
setKeyboardNavigationCluster(argumento booleano)
|
void |
setLabelFor(int arg0)
|
void |
setLayerPaint(Pintura arg0)
|
void |
setLayerType(int arg0, Paint arg1)
|
void |
setLayoutDirection(int arg0)
|
void |
setLayoutParams(ViewGroup.LayoutParams)
|
vacío final |
setLeft(int arg0)
|
vacío final |
setLeftTopRightBottom(int arg0, int arg1, int arg2, int arg3)
|
void |
setLongClickable(argumento booleano)
|
vacío final |
setMeasuredDimension(int arg0, int arg1)
|
void |
setMinimumHeight(int arg0)
|
void |
setMinimumWidth(int arg0)
|
void |
setNestedScrollingEnabled(argumento booleano)
|
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 |
setOnApplyWindowInsetsListener(View.OnApplyWindowInsetsListener arg0)
|
void |
setOnCapturedPointerListener(View.OnCapturedPointerListener)
|
void |
setOnClickListener(View.OnClickListener arg0)
|
void |
setOnContextClickListener(View.OnContextClickListener arg0)
|
void |
setOnCreateContextMenuListener(View.OnCreateContextMenuListener)
|
void |
setOnDragListener(View.OnDragListener arg0)
|
void |
setOnFocusChangeListener(View.OnFocusChangeListener arg0)
|
void |
setOnGenericMotionListener(View.OnGenericMotionListener arg0)
|
void |
setOnHoverListener(View.OnHoverListener arg0)
|
void |
setOnKeyListener(View.OnKeyListener arg0)
|
void |
setOnLongClickListener(View.OnLongClickListener arg0)
|
void |
setOnScrollChangeListener(View.OnScrollChangeListener arg0)
|
void |
setOnSystemUiVisibilityChangeListener(View.OnSystemUiVisibilityChangeListener arg0)
|
void |
setOnTouchListener(View.OnTouchListener arg0)
|
void |
setOutlineAmbientShadowColor(int arg0)
|
void |
setOutlineProvider(ViewOutlineProvider arg0)
|
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(argumento flotante)
|
void |
setPointerIcon(PointerIcon arg0)
|
void |
setPressed(argumento booleano)
|
vacío final |
setRevealOnFocusHint(argumento booleano)
|
vacío final |
setRight(int arg0)
|
void |
setRotation(float arg0)
|
void |
setRotationX(float arg0)
|
void |
setRotationY(float arg0)
|
void |
setSaveEnabled(argumento booleano)
|
void |
setSaveFromParentEnabled(argumento booleano)
|
void |
setScaleX(argumento flotante)
|
void |
setScaleY(argumento flotante)
|
void |
setScreenReaderFocusable(argumento booleano)
|
void |
setScrollBarDefaultDelayBeforeFade(int arg0)
|
void |
setScrollBarFadeDuration(int arg0)
|
void |
setScrollBarSize(int arg0)
|
void |
setScrollBarStyle(int arg0)
|
void |
setScrollContainer(argumento booleano)
|
void |
setScrollIndicators(int arg0, int arg1)
|
void |
setScrollIndicators(int arg0)
|
void |
setScrollX(int arg0)
|
void |
setScrollY(int arg0)
|
void |
setScrollbarFadingEnabled(argumento booleano)
|
void |
setSelected(argumento booleano)
|
void |
setSoundEffectsEnabled(argumento booleano)
|
void |
setStateListAnimator(StateListAnimator arg0)
|
void | |
void |
setSystemUiVisibility(int arg0)
|
void |
setTag(int arg0, Object arg1)
|
void |
setTag(Objeto arg0)
|
void |
setTextAlignment(int arg0)
|
void |
setTextDirection(int arg0)
|
void |
setTooltipText(CharSequence arg0)
|
vacío final |
setTop(int arg0)
|
void |
setTouchDelegate(TouchDelegate arg0)
|
void |
setTransitionAlpha(argumento flotante)
|
vacío final |
setTransitionName(String arg0)
|
void |
setTransitionVisibility(int arg0)
|
void |
setTranslationX(float arg0)
|
void |
setTranslationY(float arg0)
|
void |
setTranslationZ(float arg0)
|
void |
setVerticalFadingEdgeEnabled(argumento booleano)
|
void |
setVerticalScrollBarEnabled(argumento booleano)
|
void |
setVerticalScrollbarPosition(int arg0)
|
void |
setVerticalScrollbarThumbDrawable(elemento de diseño arg0)
|
void |
setVerticalScrollbarTrackDrawable(elemento de diseño arg0)
|
void |
setVisibility(int arg0)
|
void |
setWillNotCacheDrawing(boolean arg0)
|
void |
setWillNotDraw(argumento booleano)
|
void |
setX(float arg0)
|
void |
setY(argumento flotante)
|
void |
setZ(float arg0)
|
boolean |
showContextMenu()
|
boolean |
showContextMenu(float arg0, float arg1)
|
ActionMode. |
startActionMode(ActionMode.Callback arg0, int arg1)
|
ActionMode. |
startActionMode(ActionMode.Callback arg0)
|
void |
startAnimation(Animación arg0)
|
Booleano final | |
Booleano final | |
boolean |
startNestedScroll(int arg0)
|
void |
stopNestedScroll()
|
String |
toString()
|
void |
transformMatrixToGlobal(Matriz arg0)
|
void |
transformMatrixToLocal(Matriz arg0)
|
void | |
void |
unscheduleDrawable(elemento de diseño arg0)
|
vacío final |
updateDragShadow(View.DragShadownBuilder arg0)
|
boolean |
verifyDrawable(elemento de diseño arg0)
|
boolean |
willNotCacheDrawing()
|
boolean |
willNotDraw
|
vacío abstracto |
doFrame(argumento largo)
|
vacío abstracto |
invalidateDrawable(elemento de diseño arg0)
|
vacío abstracto | |
vacío abstracto |
vacío abstracto |
sendAccessibilityEvent(int arg0)
|
vacío abstracto |
sendAccessibilityEventUnchecked(AccessibilityEvent arg0)
|
Constructores públicos
público ArSceneView (contexto Context)
Construye un objeto ArSceneView y lo vincula a un contexto de Android.
Para que el procesamiento funcione correctamente, se debe llamar a setupSession(Session)
.
Parámetros
Contexto | el contexto de Android |
---|
Consulta también
public ArSceneView (Contexto el contexto AtributoSet atributos)
Construye un objeto ArSceneView y lo vincula a un contexto de Android.
Para que el procesamiento funcione correctamente, se debe llamar a setupSession(Session)
.
Parámetros
Contexto | el contexto de Android |
---|---|
attrs | el Android AttributeSet con el que se asociará |
Consulta también
Métodos públicos
public Frame getArFrame ()
Muestra el ARCore Frame más reciente si está disponible. El marco se actualiza al principio de cada marco de dibujo. Los llamadores de este método no deberían retener una referencia al valor de retorno, ya que no será válido usar el marco de ARCore a partir del siguiente.
public int getCameraStreamRenderPriority ()
Obtén la prioridad de renderización que controla el orden de procesamiento de la transmisión de la cámara. La prioridad está entre un rango de 0 (primer procesamiento) y 7 (última representación).
El valor predeterminado es 7, lo que fuerza la última transmisión de la transmisión de la cámara. Esto es mejor para el rendimiento porque evita la superposición. Sin embargo, cuando se usa un material como oclusor (por ejemplo, en la muestra de rostros aumentados), se debe cambiar. De lo contrario, el ocluyente ocultará la transmisión de la cámara y se renderizará en negro.
PlaneRenderer getPlaneRenderer ()
Muestra PlaneRenderer, que se usa para controlar la visualización del plano.
Booleano público isEnvironmentalHdrLightingAvailable ()
Muestra true si la cámara ARCore está configurada con Config.LightEstimationMode.ENVIRONMENTAL_HDR. Cuando el modo de iluminación HDR ambiental está habilitado, se aplicarán las estimaciones de luz resultantes a la escena de Sceneform.
Resultado que se muestra
- true si la iluminación HDR está habilitada en Sceneform porque la estimación de la iluminación HDR de ARCore está habilitada.
Booleano público isLightDirectionUpdateEnabled ()
Verifica si la luz solar se actualiza en cada fotograma según la estimación de iluminación HDR ambiental.
Resultado que se muestra
- true si la dirección de la luz solar se actualiza en cada fotograma, de lo contrario, false.
Booleano público isLightEstimationEnabled ()
Resultado que se muestra
- El resultado es verdadero si la estimación de luz está habilitada.
vacío público pausa ()
Pausa el subproceso de procesamiento y la sesión de ARCore.
Se debe llamar desde onPause().
público CompletableFuture<Void> pauseAsync (Ejecutor ejecutor)
Llamada sin bloqueo para pausar el subproceso de procesamiento y la sesión de ARCore.
Se debería llamar desde onPause().
Si se llama a pausaAsync mientras otra pausa o reanudación está en curso, la pausa se pondrá en cola y ocurrirá después de que se complete la operación actual.
Parámetros
ejecutor |
---|
Resultado que se muestra
- Se completó un
CompletableFuture
en la conversación principal. El futuro se completará de forma excepcional si no se puede completar el currículum.
vacío público reanudar ()
Reanuda el subproceso de procesamiento y la sesión de ARCore.
Se debe llamar desde onResume().
Arroja
Excepción de cámara no disponible | si la cámara no se puede abrir |
---|
públicoble CompletableFuture<Void> resumeAsync (Ejecutor ejecutor)
Llamada sin bloqueo para reanudar el subproceso de procesamiento y la sesión de ARCore en segundo plano
Se debe llamar desde onResume().
Si se llama mientras otra pausa o reanudación está en curso, el currículum se pondrá en cola y ocurrirá después de que se complete la operación actual.
Parámetros
ejecutor |
---|
Resultado que se muestra
- Una CompletableFuture se completa en el subproceso principal una vez que se completa el currículum. El futuro se completará de manera excepcional si no se puede completar el currículum.
vacío público setCameraStreamRenderPriority (prioridad int)
Establece la prioridad de renderización para controlar el orden en que se renderiza la transmisión de la cámara. La prioridad está entre un rango de 0 (primer procesamiento) y 7 (última representación).
El valor predeterminado es 7, lo que fuerza la última transmisión de la transmisión de la cámara. Esto es mejor para el rendimiento porque evita la superposición. Sin embargo, cuando se usa un material como oclusor (por ejemplo, en la muestra de rostros aumentados), se debe cambiar. De lo contrario, el ocluyente ocultará la transmisión de la cámara y se renderizará en negro.
Parámetros
priority |
---|
vacío público setLightDirectionUpdateEnabled (boolean isLightDirectionUpdateEnabled)
Establece si se debe actualizar la dirección de la luz solar generada a partir de la iluminación HDR ambiental en cada fotograma. Si es falso, la dirección de la luz se actualizará una vez y ya no cambiará.
Se puede usar para desactivar las actualizaciones de dirección paralela cuando se distraen o no son deseados.
El estado predeterminado es verdadero con la dirección de luz solar actualizada en cada fotograma.
Parámetros
isLightDirectionUpdateEnabled |
---|
vacío público setLightEstimationEnabled (habilitación booleana)
Habilita la estimación de la luz según el feed de la cámara. El color y la intensidad de la luz indirecta del sol se modificarán según los valores proporcionados por la estimación de luz de ARCore. Los objetos de Lit en la escena se verán afectados.
Parámetros
habilitar | se establece en verdadero para habilitar la estimación de la luz o falso a fin de usar la estimación predeterminada, que es una intensidad de píxeles de 1.0 y el valor de corrección de color del blanco (1.0, 1.0, 1.0). |
---|
public void setupSession (sesión)
Configura la vista con una sesión de RA. Se debe llamar a este método una vez para proporcionar la sesión de ARCore. La sesión es necesaria para que se produzca cualquier renderización.
Se espera que la sesión se configure con el modo de actualización de LATEST_CAMERA_IMAGE. Sin esta configuración, la actualización de la sesión de ARCore podría bloquear el subproceso de IU y provocar una experiencia deficiente de la IU.
Parámetros
sesión | la sesión de ARCore que se usará en esta vista |
---|