public final class Progress extends Component
com.facebook.litho.widget.ProgressSpec| Modifier and Type | Class and Description |
|---|---|
static class |
Progress.Builder |
Component.ContainerBuilder<T extends Component.ContainerBuilder<T>>ComponentLifecycle.MountType, ComponentLifecycle.RenderData, ComponentLifecycle.TransitionContainer| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canMeasure()
Whether this
ComponentLifecycle is able to measure itself according to specific size
constraints. |
protected boolean |
canPreallocate() |
protected void |
copyInterStageImpl(Component component) |
static Progress.Builder |
create(ComponentContext context) |
static Progress.Builder |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes) |
ComponentLifecycle.MountType |
getMountType()
This indicates the type of the
Object that will be returned by ComponentLifecycle.mount(com.facebook.litho.ComponentContext, java.lang.Object). |
boolean |
isEquivalentTo(Component other)
Compares this component to a different one to check if they are the same
|
boolean |
isPureRender() |
Progress |
makeShallowCopy() |
protected Object |
onCreateMountContent(Context c)
Create the object that will be mounted in the
LithoView. |
protected void |
onLoadStyle(ComponentContext c) |
protected void |
onMeasure(ComponentContext c,
ComponentLayout layout,
int widthSpec,
int heightSpec,
Size size) |
protected void |
onMount(ComponentContext c,
Object progressBar)
Deploy all UI elements representing the final bounds defined in the given
ComponentLayout. |
protected void |
onPrepare(ComponentContext c) |
protected void |
onUnmount(ComponentContext c,
Object progressBar)
Unload UI elements associated with this component.
|
protected int |
poolSize() |
bindDynamicProp, canResolve, clearCachedLayout, getCommonProps, getDynamicProps, getEventDispatcher, getHandle, getId, getKey, getScopedContext, getSimpleName, getSimpleNameDelegate, getStateContainer, hasBackgroundSet, hasClickHandlerSet, measure, measureMightNotCacheInternalNode, recordEventTrigger, registerWorkingRange, retrieveValue, setScopedContext, updateInternalChildState, willRenderacceptTriggerEvent, applyPreviousRenderData, callsShouldUpdateOnMount, createInitialState, createMountContent, dispatchErrorEvent, dispatchErrorEvent, dispatchOnEnteredRange, dispatchOnEvent, dispatchOnExitedRange, getEventTrigger, getEventTrigger, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getTreePropsForChildren, hasAttachDetachCallback, hasChildLithoViews, hasState, implementsAccessibility, implementsExtraAccessibilityNodes, isLayoutSpecWithSizeSpecCheck, isMountSizeDependent, needsPreviousRenderData, newEventHandler, newEventTrigger, onAttached, onBind, onBoundsDefined, onCreateLayout, onCreateLayoutWithSizeSpec, onCreateMountContentPool, onCreateTransition, onDetached, onError, onMeasureBaseline, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, onShouldCreateLayoutWithNewSizeSpec, onUnbind, populateTreeProps, recordRenderData, resolve, shouldAlwaysRemeasure, shouldUpdate, shouldUseGlobalPool, transferStatepublic boolean isEquivalentTo(Component other)
ComponentThis is used to be able to skip rendering a component again. We avoid using the Object.equals(Object) so we can optimize the code better over time since we don't have to
adhere to the contract required for a equals method.
isEquivalentTo in interface Equivalence<Component>isEquivalentTo in class Componentother - the component to compare toprotected void copyInterStageImpl(Component component)
copyInterStageImpl in class Componentpublic Progress makeShallowCopy()
makeShallowCopy in class Componentprotected void onLoadStyle(ComponentContext c)
onLoadStyle in class ComponentLifecycleprotected void onPrepare(ComponentContext c)
onPrepare in class ComponentLifecycleprotected void onMeasure(ComponentContext c, ComponentLayout layout, int widthSpec, int heightSpec, Size size)
onMeasure in class ComponentLifecycleprotected boolean canMeasure()
ComponentLifecycleComponentLifecycle is able to measure itself according to specific size
constraints.canMeasure in class ComponentLifecycleprotected void onMount(ComponentContext c, Object progressBar)
ComponentLifecycleComponentLayout. Return either a Drawable or a View or null to be
mounted.onMount in class ComponentLifecyclec - The ComponentContext to mount the component into.protected void onUnmount(ComponentContext c, Object progressBar)
ComponentLifecycleonUnmount in class ComponentLifecyclec - The Context for this mount operation.progressBar - The Drawable or View mounted by this component.protected Object onCreateMountContent(Context c)
ComponentLifecycleLithoView.onCreateMountContent in class ComponentLifecyclec - The Context to be used to create the content.public ComponentLifecycle.MountType getMountType()
ComponentLifecycleObject that will be returned by ComponentLifecycle.mount(com.facebook.litho.ComponentContext, java.lang.Object).getMountType in class ComponentLifecycleComponentLifecycle.MountTypeprotected int poolSize()
poolSize in class ComponentLifecycleprotected boolean canPreallocate()
canPreallocate in class ComponentLifecyclepublic boolean isPureRender()
isPureRender in class ComponentLifecyclepublic static Progress.Builder create(ComponentContext context)
public static Progress.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes)