public class IncrementalMountExtension extends MountDelegateExtension implements HostListenerExtension<IncrementalMountExtension.IncrementalMountExtensionInput>
Modifier and Type | Class and Description |
---|---|
static interface |
IncrementalMountExtension.IncrementalMountExtensionInput |
Constructor and Description |
---|
IncrementalMountExtension(Host lithoView) |
Modifier and Type | Method and Description |
---|---|
void |
afterMount()
Called immediately after mounting.
|
void |
beforeMount(IncrementalMountExtension.IncrementalMountExtensionInput input,
Rect localVisibleRect)
Called for setting up input on the extension before mounting.
|
boolean |
canPreventMount() |
void |
onUnbind()
Called after all the Host's children have been unbound.
|
void |
onUnmount()
Called after all the Host's children have been unmounted.
|
void |
onVisibleBoundsChanged(Rect localVisibleRect)
Called when LithoView visible bounds change to perform incremental mount.
|
acquireMountReference, getContentAt, getMountTarget, isAnimationLocked, isLockedForMount, isRootItem, onUmountItem, ownsReference, registerToDelegate, releaseMountReference, resetAcquiredReferences
public IncrementalMountExtension(Host lithoView)
public void beforeMount(IncrementalMountExtension.IncrementalMountExtensionInput input, Rect localVisibleRect)
HostListenerExtension
beforeMount
in interface HostListenerExtension<IncrementalMountExtension.IncrementalMountExtensionInput>
public void afterMount()
HostListenerExtension
afterMount
in interface HostListenerExtension<IncrementalMountExtension.IncrementalMountExtensionInput>
public void onUnmount()
HostListenerExtension
onUnmount
in interface HostListenerExtension<IncrementalMountExtension.IncrementalMountExtensionInput>
public void onVisibleBoundsChanged(Rect localVisibleRect)
onVisibleBoundsChanged
in interface HostListenerExtension<IncrementalMountExtension.IncrementalMountExtensionInput>
localVisibleRect
- public void onUnbind()
HostListenerExtension
onUnbind
in interface HostListenerExtension<IncrementalMountExtension.IncrementalMountExtensionInput>
public boolean canPreventMount()
canPreventMount
in class MountDelegateExtension