public class ReactProgressBarViewManager extends BaseViewManager<com.facebook.react.views.progressbar.ProgressBarContainerView,ProgressBarShadowNode>
PROP_TEST_ID
Constructor and Description |
---|
ReactProgressBarViewManager() |
Modifier and Type | Method and Description |
---|---|
static android.widget.ProgressBar |
createProgressBar(android.content.Context context,
int style)
We create ProgressBars on both the UI and shadow threads.
|
ProgressBarShadowNode |
createShadowNodeInstance()
This method should return a subclass of
ReactShadowNode which will be then used for
measuring position and size of the view. |
protected com.facebook.react.views.progressbar.ProgressBarContainerView |
createViewInstance(ThemedReactContext context)
Subclasses should return a new View instance of the proper type.
|
java.lang.String |
getName() |
java.lang.Class<ProgressBarShadowNode> |
getShadowNodeClass()
This method should return
Class instance that represent type of shadow node that this
manager will return from ViewManager.createShadowNodeInstance() . |
protected void |
onAfterUpdateTransaction(com.facebook.react.views.progressbar.ProgressBarContainerView view)
Callback that will be triggered after all properties are updated in current update transaction
(all @ReactProp handlers for properties updated in current transaction have been called).
|
void |
setAnimating(com.facebook.react.views.progressbar.ProgressBarContainerView view,
boolean animating) |
void |
setColor(com.facebook.react.views.progressbar.ProgressBarContainerView view,
java.lang.Integer color) |
void |
setIndeterminate(com.facebook.react.views.progressbar.ProgressBarContainerView view,
boolean indeterminate) |
void |
setProgress(com.facebook.react.views.progressbar.ProgressBarContainerView view,
double progress) |
void |
setStyle(com.facebook.react.views.progressbar.ProgressBarContainerView view,
java.lang.String styleName) |
void |
updateExtraData(com.facebook.react.views.progressbar.ProgressBarContainerView root,
java.lang.Object extraData)
Subclasses can implement this method to receive an optional extra data enqueued from the
corresponding instance of
ReactShadowNode in
ReactShadowNode.onCollectExtraUpdates(com.facebook.react.uimanager.UIViewOperationQueue) . |
setAccessibilityComponentType, setAccessibilityLabel, setAccessibilityLiveRegion, setBackgroundColor, setElevation, setImportantForAccessibility, setOpacity, setRenderToHardwareTexture, setRotation, setScaleX, setScaleY, setTestId, setTransform, setTranslateX, setTranslateY, setZIndex
addEventEmitters, createView, getCommandsMap, getExportedCustomBubblingEventTypeConstants, getExportedCustomDirectEventTypeConstants, getExportedViewConstants, getNativeProps, onDropViewInstance, receiveCommand, updateProperties
public static android.widget.ProgressBar createProgressBar(android.content.Context context, int style)
public java.lang.String getName()
getName
in class ViewManager<com.facebook.react.views.progressbar.ProgressBarContainerView,ProgressBarShadowNode>
protected com.facebook.react.views.progressbar.ProgressBarContainerView createViewInstance(ThemedReactContext context)
ViewManager
createViewInstance
in class ViewManager<com.facebook.react.views.progressbar.ProgressBarContainerView,ProgressBarShadowNode>
public void setStyle(com.facebook.react.views.progressbar.ProgressBarContainerView view, @Nullable java.lang.String styleName)
public void setColor(com.facebook.react.views.progressbar.ProgressBarContainerView view, @Nullable java.lang.Integer color)
public void setIndeterminate(com.facebook.react.views.progressbar.ProgressBarContainerView view, boolean indeterminate)
public void setProgress(com.facebook.react.views.progressbar.ProgressBarContainerView view, double progress)
public void setAnimating(com.facebook.react.views.progressbar.ProgressBarContainerView view, boolean animating)
public ProgressBarShadowNode createShadowNodeInstance()
ViewManager
ReactShadowNode
which will be then used for
measuring position and size of the view. In mose of the cases this should just return an
instance of ReactShadowNode
createShadowNodeInstance
in class ViewManager<com.facebook.react.views.progressbar.ProgressBarContainerView,ProgressBarShadowNode>
public java.lang.Class<ProgressBarShadowNode> getShadowNodeClass()
ViewManager
Class
instance that represent type of shadow node that this
manager will return from ViewManager.createShadowNodeInstance()
.
This method will be used in the bridge initialization phase to collect properties exposed using
ReactProp
(or ReactPropGroup
) annotation from the ReactShadowNode
subclass specific for native view this manager provides.getShadowNodeClass
in class ViewManager<com.facebook.react.views.progressbar.ProgressBarContainerView,ProgressBarShadowNode>
Class
object that represents type of shadow node used by this view manager.public void updateExtraData(com.facebook.react.views.progressbar.ProgressBarContainerView root, java.lang.Object extraData)
ViewManager
ReactShadowNode
in
ReactShadowNode.onCollectExtraUpdates(com.facebook.react.uimanager.UIViewOperationQueue)
.
Since css layout step and ui updates can be executed in separate thread apart of setting
x/y/width/height this is the recommended and thread-safe way of passing extra data from css
node to the native view counterpart.
TODO(7247021): Replace updateExtraData with generic update props mechanism after D2086999updateExtraData
in class ViewManager<com.facebook.react.views.progressbar.ProgressBarContainerView,ProgressBarShadowNode>
protected void onAfterUpdateTransaction(com.facebook.react.views.progressbar.ProgressBarContainerView view)
ViewManager
onAfterUpdateTransaction
in class ViewManager<com.facebook.react.views.progressbar.ProgressBarContainerView,ProgressBarShadowNode>