public class TransitionsExtension extends MountExtension<TransitionsExtensionInput,com.facebook.litho.TransitionsExtension.TransitionsExtensionState> implements UnmountDelegateExtension<com.facebook.litho.TransitionsExtension.TransitionsExtensionState>
Modifier and Type | Method and Description |
---|---|
void |
afterMount(ExtensionState<com.facebook.litho.TransitionsExtension.TransitionsExtensionState> extensionState)
Called immediately after mounting.
|
void |
beforeMount(ExtensionState<com.facebook.litho.TransitionsExtension.TransitionsExtensionState> extensionState,
TransitionsExtensionInput input,
Rect localVisibleRect)
Called for setting up input on the extension before mounting.
|
static void |
clearLastMountedTreeId(ExtensionState<com.facebook.litho.TransitionsExtension.TransitionsExtensionState> extensionState) |
protected com.facebook.litho.TransitionsExtension.TransitionsExtensionState |
createState() |
static TransitionsExtension |
getInstance() |
static TransitionsExtension |
getInstance(java.lang.String debugTag) |
void |
onBoundsAppliedToItem(ExtensionState<com.facebook.litho.TransitionsExtension.TransitionsExtensionState> extensionState,
RenderUnit<?> renderUnit,
java.lang.Object content,
java.lang.Object layoutData) |
void |
onUnbind(ExtensionState<com.facebook.litho.TransitionsExtension.TransitionsExtensionState> extensionState)
Called after all the Host's children have been unbound.
|
void |
onUnmount(ExtensionState<com.facebook.litho.TransitionsExtension.TransitionsExtensionState> extensionState)
Called after all the Host's children have been unmounted.
|
boolean |
shouldDelegateUnmount(ExtensionState<com.facebook.litho.TransitionsExtension.TransitionsExtensionState> extensionState,
MountItem mountItem)
This method is called to check if this item's unmount needs to be delegated.
|
void |
unmount(ExtensionState<com.facebook.litho.TransitionsExtension.TransitionsExtensionState> extensionState,
MountItem mountItem,
Host host)
This method is responsible for unmounting the item from the
Host and unbinding the item
from the MountDelegateTarget . |
beforeMountItem, canPreventMount, createExtensionState, getContentAt, getContentById, getMountTarget, isLockedForMount, isLockedForMount, isRootItem, onBindItem, onMountItem, onUnbindItem, onUnmountItem, onVisibleBoundsChanged, shouldUpdateItem
public static TransitionsExtension getInstance()
public static TransitionsExtension getInstance(java.lang.String debugTag)
public boolean shouldDelegateUnmount(ExtensionState<com.facebook.litho.TransitionsExtension.TransitionsExtensionState> extensionState, MountItem mountItem)
UnmountDelegateExtension
shouldDelegateUnmount
in interface UnmountDelegateExtension<com.facebook.litho.TransitionsExtension.TransitionsExtensionState>
public void unmount(ExtensionState<com.facebook.litho.TransitionsExtension.TransitionsExtensionState> extensionState, MountItem mountItem, Host host)
UnmountDelegateExtension
Host
and unbinding the item
from the MountDelegateTarget
.unmount
in interface UnmountDelegateExtension<com.facebook.litho.TransitionsExtension.TransitionsExtensionState>
protected com.facebook.litho.TransitionsExtension.TransitionsExtensionState createState()
createState
in class MountExtension<TransitionsExtensionInput,com.facebook.litho.TransitionsExtension.TransitionsExtensionState>
public void beforeMount(ExtensionState<com.facebook.litho.TransitionsExtension.TransitionsExtensionState> extensionState, TransitionsExtensionInput input, Rect localVisibleRect)
MountExtension
beforeMount
in class MountExtension<TransitionsExtensionInput,com.facebook.litho.TransitionsExtension.TransitionsExtensionState>
extensionState
- The inner state of this extension when beforeMount is called.input
- The new input the extension should use.public void afterMount(ExtensionState<com.facebook.litho.TransitionsExtension.TransitionsExtensionState> extensionState)
MountExtension
afterMount
in class MountExtension<TransitionsExtensionInput,com.facebook.litho.TransitionsExtension.TransitionsExtensionState>
public void onUnmount(ExtensionState<com.facebook.litho.TransitionsExtension.TransitionsExtensionState> extensionState)
MountExtension
onUnmount
in class MountExtension<TransitionsExtensionInput,com.facebook.litho.TransitionsExtension.TransitionsExtensionState>
public void onUnbind(ExtensionState<com.facebook.litho.TransitionsExtension.TransitionsExtensionState> extensionState)
MountExtension
onUnbind
in class MountExtension<TransitionsExtensionInput,com.facebook.litho.TransitionsExtension.TransitionsExtensionState>
public static void clearLastMountedTreeId(ExtensionState<com.facebook.litho.TransitionsExtension.TransitionsExtensionState> extensionState)
public void onBoundsAppliedToItem(ExtensionState<com.facebook.litho.TransitionsExtension.TransitionsExtensionState> extensionState, RenderUnit<?> renderUnit, java.lang.Object content, java.lang.Object layoutData)
onBoundsAppliedToItem
in class MountExtension<TransitionsExtensionInput,com.facebook.litho.TransitionsExtension.TransitionsExtensionState>