public final class Progress extends SpecGeneratedComponent
com.facebook.litho.widget.ProgressSpec| Modifier and Type | Class and Description |
|---|---|
static class |
Progress.Builder |
SpecGeneratedComponent.TransitionContainerComponent.ContainerBuilder<T extends Component.ContainerBuilder<T>>, Component.MountType, Component.RenderData| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canMeasure()
Whether this
Component is able to measure itself according to
specific size constraints. |
boolean |
canPreallocate()
This API informs the framework to fill the content pool for this Mountable ahead of time.
|
protected void |
copyPrepareInterStageImpl(PrepareInterStagePropsContainer copyIntoInterStagePropsContainer,
PrepareInterStagePropsContainer copyFromInterStagePropsContainer) |
static Progress.Builder |
create(ComponentContext context) |
static Progress.Builder |
create(ComponentContext context,
int defStyleAttr,
int defStyleRes) |
protected com.facebook.litho.widget.Progress.ProgressPrepareInterStagePropsContainer |
createPrepareInterStagePropsContainer() |
Component.MountType |
getMountType()
This indicates the type of the
Object that will be returned by com.facebook.litho.Component#mount. |
boolean |
isEquivalentProps(Component other,
boolean shouldCompareCommonProps)
Determine if this component has equivalent props to a given component.
|
boolean |
isPureRender() |
protected java.lang.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,
InterStagePropsContainer _5) |
protected void |
onMount(ComponentContext c,
java.lang.Object progressBar,
InterStagePropsContainer _2)
Deploy all UI elements representing the final bounds defined in the given
ComponentLayout. |
protected void |
onPrepare(ComponentContext c) |
protected void |
onUnmount(ComponentContext c,
java.lang.Object progressBar,
InterStagePropsContainer _2)
Unload UI elements associated with this component.
|
int |
poolSize()
This API informs the framework about the size of the content pool.
|
acceptTriggerEvent, acceptTriggerEventImpl, applyPreviousRenderData, bindDynamicProp, copyInterStageImpl, createContent, createInitialState, createInterStagePropsContainer, createPoolableContent, createRecyclingPool, createStateContainer, dispatchOnEnteredRange, dispatchOnExitedRange, getExtraAccessibilityNodeAt, getExtraAccessibilityNodesCount, getInterStagePropsContainer, getPoolableContentType, getPrepareInterStagePropsContainer, getSimpleName, getSimpleNameDelegate, getTreePropsForChildren, hasAttachDetachCallback, hasOwnErrorHandler, hasState, implementsAccessibility, implementsExtraAccessibilityNodes, isMountSizeDependent, isRecyclingDisabled, needsPreviousRenderData, onAttached, onBind, onBoundsDefined, onCreateLayout, onCreateLayoutWithSizeSpec, onCreateMountContentPool, onDetached, onError, onMeasureBaseline, onUnbind, populateTreeProps, prepare, recordEventTrigger, recordRenderData, render, shouldAlwaysRemeasure, usesLocalStateContainerclone, createMountContent, dispatchErrorEvent, dispatchOnEvent, dispatchOnEventImpl, equals, excludeFromIncrementalMount, getCommonProps, getDynamicProps, getErrorHandler, getEventDispatcher, getEventTrigger, getEventTrigger, getHandle, getTreePropFromParent, getTypeId, hasChildLithoViews, hasClickHandlerSet, hashCode, implementsShouldUpdate, isEqualivalentTreeProps, isEquivalentCommonProps, isEquivalentTo, isEquivalentTo, isLayoutSpecWithSizeSpec, isPureRender, makeShallowCopy, measure, measure, measureMightNotCacheInternalNode, newEventHandler, newEventTrigger, newEventTrigger, onCreateTransition, onPopulateAccessibilityNode, onPopulateExtraAccessibilityNode, registerWorkingRange, resolve, retrieveValue, shouldUpdate, toString, transferState, willRenderprotected com.facebook.litho.widget.Progress.ProgressPrepareInterStagePropsContainer createPrepareInterStagePropsContainer()
createPrepareInterStagePropsContainer in class SpecGeneratedComponentpublic boolean isEquivalentProps(Component other, boolean shouldCompareCommonProps)
ComponentisEquivalentProps in class Componentother - the component to compare toprotected void copyPrepareInterStageImpl(PrepareInterStagePropsContainer copyIntoInterStagePropsContainer, PrepareInterStagePropsContainer copyFromInterStagePropsContainer)
copyPrepareInterStageImpl in class SpecGeneratedComponentprotected void onLoadStyle(ComponentContext c)
onLoadStyle in class Componentprotected void onPrepare(ComponentContext c)
onPrepare in class SpecGeneratedComponentprotected void onMeasure(ComponentContext c, ComponentLayout layout, int widthSpec, int heightSpec, Size size, InterStagePropsContainer _5)
onMeasure in class SpecGeneratedComponentprotected boolean canMeasure()
ComponentComponent is able to measure itself according to
specific size constraints.canMeasure in class Componentprotected void onMount(ComponentContext c, java.lang.Object progressBar, InterStagePropsContainer _2)
SpecGeneratedComponentComponentLayout. Return either a Drawable or a View or null to be
mounted.onMount in class SpecGeneratedComponentc - The ComponentContext to mount the component into.protected void onUnmount(ComponentContext c, java.lang.Object progressBar, InterStagePropsContainer _2)
SpecGeneratedComponentonUnmount in class SpecGeneratedComponentc - The Context for this mount operation.progressBar - The Drawable or View mounted by this component.protected java.lang.Object onCreateMountContent(Context c)
ComponentLithoView.onCreateMountContent in class Componentc - The Context to be used to create the content.public Component.MountType getMountType()
ComponentObject that will be returned by com.facebook.litho.Component#mount.getMountType in class ComponentComponent.MountTypepublic int poolSize()
ContentAllocatorExperimental. Currently for Litho team internal use only.
poolSize in interface ContentAllocatorpoolSize in class SpecGeneratedComponentpublic boolean canPreallocate()
ContentAllocatorfalse, i.e. content is not pre-allocated. Pre-allocation of the
content can improve performance in some circumstances where creating the content is expensive.canPreallocate in interface ContentAllocatorcanPreallocate in class SpecGeneratedComponentpublic boolean isPureRender()
isPureRender in class Componentpublic static Progress.Builder create(ComponentContext context)
public static Progress.Builder create(ComponentContext context, int defStyleAttr, int defStyleRes)