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) |
setAlignItems, setAlignSelf, setAspectRatio, setBorderWidths, setFlex, setFlexBasis, setFlexDirection, setFlexGrow, setFlexShrink, setFlexWrap, setHeight, setJustifyContent, setMargins, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOverflow, setPaddings, setPosition, setPositionValues, setShouldNotifyOnLayout, setWidth
addChildAt, addNativeChildAt, calculateLayout, dirty, dispose, getChildAt, getChildCount, getLayoutDirection, getLayoutHeight, getLayoutWidth, getLayoutX, getLayoutY, getNativeChildCount, getNativeOffsetForChild, getNativeParent, getPadding, getParent, getReactTag, getRootNode, getScreenHeight, getScreenWidth, getScreenX, getScreenY, getStyleHeight, getStyleWidth, getThemedContext, getTotalNativeChildren, getViewClass, hasNewLayout, hasUnseenUpdates, hasUpdates, indexOf, indexOfNativeChild, isDirty, isLayoutOnly, markLayoutSeen, markUpdated, markUpdateSeen, onAfterUpdateTransaction, onBeforeLayout, removeAllNativeChildren, removeAndDisposeAllChildren, removeChildAt, removeNativeChildAt, setAlignItems, setAlignSelf, setBorder, setDefaultPadding, setFlexDirection, setFlexWrap, setIsLayoutOnly, setJustifyContent, setLayoutDirection, setMargin, setMeasureFunction, setOverflow, setPadding, setPosition, setPositionType, setReactTag, setStyleAspectRatio, setStyleHeight, setStyleMaxHeight, setStyleMaxWidth, setStyleMinHeight, setStyleMinWidth, setStyleWidth, setThemedContext, shouldNotifyOnLayout, toString, updateProperties
public boolean isVirtual()
ReactShadowNode
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 class ReactShadowNode
public boolean isVirtualAnchor()
ReactShadowNode
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 class ReactShadowNode
public void onCollectExtraUpdates(UIViewOperationQueue uiUpdater)
ReactShadowNode
UIManagerModule
. May be used
to enqueue additional ui operations for the native view. Will only be called on nodes marked
as updated either with ReactShadowNode.dirty()
or ReactShadowNode.markUpdated()
.onCollectExtraUpdates
in class ReactShadowNode
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