public class DynamicPropsExtension extends MountExtension<java.lang.Void,com.facebook.litho.DynamicPropsExtension.DynamicPropsExtensionState>
Modifier and Type | Method and Description |
---|---|
protected com.facebook.litho.DynamicPropsExtension.DynamicPropsExtensionState |
createState() |
static DynamicPropsExtension |
getInstance() |
void |
onBindItem(ExtensionState<com.facebook.litho.DynamicPropsExtension.DynamicPropsExtensionState> extensionState,
RenderUnit<?> renderUnit,
java.lang.Object content,
java.lang.Object layoutData)
Called after an item is bound, after it gets mounted or updated.
|
void |
onUnbindItem(ExtensionState<com.facebook.litho.DynamicPropsExtension.DynamicPropsExtensionState> extensionState,
RenderUnit<?> renderUnit,
java.lang.Object content,
java.lang.Object layoutData)
Called after an item is unbound.
|
boolean |
shouldUpdateItem(RenderUnit<?> previousRenderUnit,
java.lang.Object previousLayoutData,
RenderUnit<?> nextRenderUnit,
java.lang.Object nextLayoutData)
Called when an item is already mounted.
|
afterMount, beforeMount, beforeMountItem, canPreventMount, createExtensionState, getContentAt, getContentById, getMountTarget, isLockedForMount, isLockedForMount, isRootItem, onBoundsAppliedToItem, onMountItem, onUnbind, onUnmount, onUnmountItem, onVisibleBoundsChanged
protected com.facebook.litho.DynamicPropsExtension.DynamicPropsExtensionState createState()
createState
in class MountExtension<java.lang.Void,com.facebook.litho.DynamicPropsExtension.DynamicPropsExtensionState>
public static DynamicPropsExtension getInstance()
public void onBindItem(ExtensionState<com.facebook.litho.DynamicPropsExtension.DynamicPropsExtensionState> extensionState, RenderUnit<?> renderUnit, java.lang.Object content, java.lang.Object layoutData)
MountExtension
onBindItem
in class MountExtension<java.lang.Void,com.facebook.litho.DynamicPropsExtension.DynamicPropsExtensionState>
public void onUnbindItem(ExtensionState<com.facebook.litho.DynamicPropsExtension.DynamicPropsExtensionState> extensionState, RenderUnit<?> renderUnit, java.lang.Object content, java.lang.Object layoutData)
MountExtension
onUnbindItem
in class MountExtension<java.lang.Void,com.facebook.litho.DynamicPropsExtension.DynamicPropsExtensionState>
public boolean shouldUpdateItem(RenderUnit<?> previousRenderUnit, java.lang.Object previousLayoutData, RenderUnit<?> nextRenderUnit, java.lang.Object nextLayoutData)
MountExtension
shouldUpdateItem
in class MountExtension<java.lang.Void,com.facebook.litho.DynamicPropsExtension.DynamicPropsExtensionState>