public class LithoViewAttributesExtension extends MountExtension<java.lang.Void,com.facebook.litho.LithoViewAttributesExtension.LithoViewAttributesState>
Modifier and Type | Method and Description |
---|---|
protected com.facebook.litho.LithoViewAttributesExtension.LithoViewAttributesState |
createState() |
void |
onMountItem(ExtensionState<com.facebook.litho.LithoViewAttributesExtension.LithoViewAttributesState> extensionState,
RenderUnit<?> renderUnit,
java.lang.Object content,
java.lang.Object layoutData)
Called after an item is mounted.
|
void |
onUnmountItem(ExtensionState<com.facebook.litho.LithoViewAttributesExtension.LithoViewAttributesState> extensionState,
RenderUnit<?> renderUnit,
java.lang.Object content,
java.lang.Object layoutData)
Called after an item is unmounted.
|
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, onBindItem, onBoundsAppliedToItem, onUnbind, onUnbindItem, onUnmount, onVisibleBoundsChanged
protected com.facebook.litho.LithoViewAttributesExtension.LithoViewAttributesState createState()
createState
in class MountExtension<java.lang.Void,com.facebook.litho.LithoViewAttributesExtension.LithoViewAttributesState>
public void onMountItem(ExtensionState<com.facebook.litho.LithoViewAttributesExtension.LithoViewAttributesState> extensionState, RenderUnit<?> renderUnit, java.lang.Object content, java.lang.Object layoutData)
MountExtension
onMountItem
in class MountExtension<java.lang.Void,com.facebook.litho.LithoViewAttributesExtension.LithoViewAttributesState>
public void onUnmountItem(ExtensionState<com.facebook.litho.LithoViewAttributesExtension.LithoViewAttributesState> extensionState, RenderUnit<?> renderUnit, java.lang.Object content, java.lang.Object layoutData)
MountExtension
onUnmountItem
in class MountExtension<java.lang.Void,com.facebook.litho.LithoViewAttributesExtension.LithoViewAttributesState>
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.LithoViewAttributesExtension.LithoViewAttributesState>