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, setWidthaddChildAt, addNativeChildAt, calculateLayout, dirty, dispose, getChildAt, getChildCount, getLayoutDirection, getLayoutHeight, getLayoutWidth, getLayoutX, getLayoutY, getNativeChildCount, getNativeOffsetForChild, getNativeParent, getPadding, getParent, getReactTag, getRootNode, getScreenHeight, getScreenWidth, getScreenX, getScreenY, getStyleHeight, getStylePadding, getStyleWidth, getThemedContext, getTotalNativeChildren, getViewClass, hasNewLayout, hasUnseenUpdates, hasUpdates, indexOf, indexOfNativeChild, isDescendantOf, isDirty, isLayoutOnly, markLayoutSeen, markUpdated, markUpdateSeen, onAfterUpdateTransaction, onBeforeLayout, removeAllNativeChildren, removeAndDisposeAllChildren, removeChildAt, removeNativeChildAt, setAlignContent, setAlignItems, setAlignSelf, setBorder, setDefaultPadding, setDisplay, setFlexBasis, setFlexBasisAuto, setFlexBasisPercent, setFlexDirection, setFlexWrap, setIsLayoutOnly, setJustifyContent, setLayoutDirection, setMargin, setMarginAuto, setMarginPercent, setMeasureFunction, setOverflow, setPadding, setPaddingPercent, setPosition, setPositionPercent, setPositionType, setReactTag, setStyleAspectRatio, setStyleHeight, setStyleHeightAuto, setStyleHeightPercent, setStyleMaxHeight, setStyleMaxHeightPercent, setStyleMaxWidth, setStyleMaxWidthPercent, setStyleMinHeight, setStyleMinHeightPercent, setStyleMinWidth, setStyleMinWidthPercent, setStyleWidth, setStyleWidthAuto, setStyleWidthPercent, setThemedContext, shouldNotifyOnLayout, toString, updatePropertiespublic void setBackgroundColor(java.lang.Integer color)
public boolean isVirtual()
ReactShadowNodetrue 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 ReactShadowNodepublic boolean isVirtualAnchor()
ReactShadowNodetrue 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 ReactShadowNodepublic void onCollectExtraUpdates(UIViewOperationQueue uiUpdater)
ReactShadowNodeUIManagerModule. 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 ReactShadowNodeuiUpdater - interface for enqueueing UI operationspublic void onSurfaceTextureAvailable(android.graphics.SurfaceTexture surface,
int width,
int height)
onSurfaceTextureAvailable in interface android.view.TextureView.SurfaceTextureListenerpublic boolean onSurfaceTextureDestroyed(android.graphics.SurfaceTexture surface)
onSurfaceTextureDestroyed in interface android.view.TextureView.SurfaceTextureListenerpublic void onSurfaceTextureSizeChanged(android.graphics.SurfaceTexture surface,
int width,
int height)
onSurfaceTextureSizeChanged in interface android.view.TextureView.SurfaceTextureListenerpublic void onSurfaceTextureUpdated(android.graphics.SurfaceTexture surface)
onSurfaceTextureUpdated in interface android.view.TextureView.SurfaceTextureListener