public class ARTSurfaceViewShadowNode extends LayoutShadowNode implements android.view.TextureView.SurfaceTextureListener
Constructor and Description |
---|
ARTSurfaceViewShadowNode() |
Modifier and Type | Method and Description |
---|---|
boolean |
isVirtual()
Nodes that return
true will be treated as "virtual" nodes. |
boolean |
isVirtualAnchor()
Nodes that return
true will be treated as a root view for the virtual nodes tree. |
void |
onCollectExtraUpdates(UIViewOperationQueue uiUpdater)
Called after layout step at the end of the UI batch from
UIManagerModule . |
void |
onSurfaceTextureAvailable(android.graphics.SurfaceTexture surface,
int width,
int height) |
boolean |
onSurfaceTextureDestroyed(android.graphics.SurfaceTexture surface) |
void |
onSurfaceTextureSizeChanged(android.graphics.SurfaceTexture surface,
int width,
int height) |
void |
onSurfaceTextureUpdated(android.graphics.SurfaceTexture surface) |
void |
setBackgroundColor(java.lang.Integer color) |
setAlignContent, setAlignItems, setAlignSelf, setAspectRatio, setBorderWidths, setDisplay, setFlex, setFlexBasis, setFlexDirection, setFlexGrow, setFlexShrink, setFlexWrap, setHeight, setJustifyContent, setMargins, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOverflow, setPaddings, setPosition, setPositionValues, setShouldNotifyOnLayout, setWidth
addChildAt, addNativeChildAt, calculateLayout, dirty, dispatchUpdates, dispose, getChildAt, getChildCount, getHierarchyInfo, getLayoutDirection, getLayoutHeight, getLayoutWidth, getLayoutX, getLayoutY, getNativeChildCount, getNativeOffsetForChild, getNativeParent, getPadding, getParent, getReactTag, getRootTag, getScreenHeight, getScreenWidth, getScreenX, getScreenY, getStyleHeight, getStylePadding, getStyleWidth, getThemedContext, getTotalNativeChildren, getViewClass, hasNewLayout, hasUnseenUpdates, hasUpdates, indexOf, indexOfNativeChild, isDescendantOf, isDirty, isLayoutOnly, isMeasureDefined, isYogaLeafNode, markLayoutSeen, markUpdated, markUpdateSeen, onAfterUpdateTransaction, onBeforeLayout, removeAllNativeChildren, removeAndDisposeAllChildren, removeChildAt, removeNativeChildAt, setAlignContent, setAlignItems, setAlignSelf, setBaselineFunction, setBorder, setDefaultPadding, setDisplay, setFlexBasis, setFlexBasisAuto, setFlexBasisPercent, setFlexDirection, setFlexWrap, setIsLayoutOnly, setJustifyContent, setLayoutDirection, setLocalData, setMargin, setMarginAuto, setMarginPercent, setMeasureFunction, setOverflow, setPadding, setPaddingPercent, setPosition, setPositionPercent, setPositionType, setReactTag, setRootTag, setStyleAspectRatio, setStyleHeight, setStyleHeightAuto, setStyleHeightPercent, setStyleMaxHeight, setStyleMaxHeightPercent, setStyleMaxWidth, setStyleMaxWidthPercent, setStyleMinHeight, setStyleMinHeightPercent, setStyleMinWidth, setStyleMinWidthPercent, setStyleWidth, setStyleWidthAuto, setStyleWidthPercent, setThemedContext, setViewClassName, shouldNotifyOnLayout, toString, updateProperties
public void setBackgroundColor(java.lang.Integer color)
public boolean isVirtual()
ReactShadowNodeImpl
true
will be treated as "virtual" nodes. That is, nodes that are not
mapped into native views (e.g. nested text node). By default this method returns false
.isVirtual
in interface ReactShadowNode<ReactShadowNodeImpl>
isVirtual
in class ReactShadowNodeImpl
public boolean isVirtualAnchor()
ReactShadowNodeImpl
true
will be treated as a root view for the virtual nodes tree. It
means that NativeViewHierarchyManager
will not try to perform manageChildren
operation on such views. Good example is InputText
view that may have children Text
nodes but this whole hierarchy will be mapped to a single android EditText
view.isVirtualAnchor
in interface ReactShadowNode<ReactShadowNodeImpl>
isVirtualAnchor
in class ReactShadowNodeImpl
public void onCollectExtraUpdates(UIViewOperationQueue uiUpdater)
ReactShadowNodeImpl
UIManagerModule
. May be used
to enqueue additional ui operations for the native view. Will only be called on nodes marked as
updated either with ReactShadowNodeImpl.dirty()
or ReactShadowNodeImpl.markUpdated()
.onCollectExtraUpdates
in interface ReactShadowNode<ReactShadowNodeImpl>
onCollectExtraUpdates
in class ReactShadowNodeImpl
uiUpdater
- interface for enqueueing UI operationspublic void onSurfaceTextureAvailable(android.graphics.SurfaceTexture surface, int width, int height)
onSurfaceTextureAvailable
in interface android.view.TextureView.SurfaceTextureListener
public boolean onSurfaceTextureDestroyed(android.graphics.SurfaceTexture surface)
onSurfaceTextureDestroyed
in interface android.view.TextureView.SurfaceTextureListener
public void onSurfaceTextureSizeChanged(android.graphics.SurfaceTexture surface, int width, int height)
onSurfaceTextureSizeChanged
in interface android.view.TextureView.SurfaceTextureListener
public void onSurfaceTextureUpdated(android.graphics.SurfaceTexture surface)
onSurfaceTextureUpdated
in interface android.view.TextureView.SurfaceTextureListener