public class MountDelegate
extends java.lang.Object
Constructor and Description |
---|
MountDelegate(MountDelegateTarget mountDelegateTarget,
Systracer tracer) |
Modifier and Type | Method and Description |
---|---|
void |
acquireAndMountRef(long id) |
void |
acquireAndMountRef(RenderTreeNode node) |
void |
acquireMountRef(long id) |
void |
acquireMountRef(RenderTreeNode node) |
void |
afterMount() |
void |
beforeMount(java.util.List<<any>> results,
Rect rect)
Calls
MountExtension.beforeMount(ExtensionState, Object, Rect) for each RenderCoreExtension that has a mount phase. |
void |
endNotifyVisibleBoundsChangedSection() |
java.lang.Object |
getContentAt(int position) |
java.lang.Object |
getContentById(long id) |
java.util.List<ExtensionState> |
getExtensionStates() |
MountDelegateTarget |
getMountDelegateTarget() |
int |
getRefCount(long id) |
ExtensionState |
getUnmountDelegateExtensionState() |
boolean |
isLockedForMount(long id) |
boolean |
isLockedForMount(RenderTreeNode renderTreeNode) |
boolean |
isRootItem(int position) |
boolean |
maybeLockForMount(RenderTreeNode renderTreeNode,
int index) |
void |
notifyVisibleBoundsChanged(Rect rect) |
void |
notifyVisibleBoundsChangedForItem(java.lang.Object item) |
void |
onBindItem(RenderUnit renderUnit,
java.lang.Object content,
java.lang.Object layoutData) |
void |
onBoundsAppliedToItem(RenderTreeNode node,
java.lang.Object content) |
void |
onMountItem(RenderUnit renderUnit,
java.lang.Object content,
java.lang.Object layoutData) |
void |
onUnbindItem(RenderUnit renderUnit,
java.lang.Object content,
java.lang.Object layoutData) |
void |
onUnmountItem(RenderUnit renderUnit,
java.lang.Object content,
java.lang.Object layoutData) |
void |
registerExtensions(java.util.List<<any>> extensions) |
ExtensionState |
registerMountExtension(MountExtension extension)
Deprecated.
Only used for Litho's integration. Marked for removal.
|
void |
releaseAllAcquiredReferences() |
void |
releaseAndUnmountRef(long id) |
void |
releaseAndUnmountRef(RenderTreeNode renderTreeNode) |
void |
releaseMountRef(long id) |
void |
releaseMountRef(RenderTreeNode renderTreeNode) |
void |
setCollectVisibleBoundsChangedCalls(boolean value) |
void |
setSkipNotifyVisibleBoundsChanged(boolean value) |
void |
startNotifyVisibleBoundsChangedSection() |
void |
unregisterAllExtensions() |
void |
unregisterMountExtension(MountExtension toRemove)
Deprecated.
Only used for Litho's integration. Marked for removal.
|
public MountDelegate(MountDelegateTarget mountDelegateTarget, Systracer tracer)
public void setCollectVisibleBoundsChangedCalls(boolean value)
public void setSkipNotifyVisibleBoundsChanged(boolean value)
public void registerExtensions(java.util.List<<any>> extensions)
@Deprecated public ExtensionState registerMountExtension(MountExtension extension)
extension
- @Deprecated public void unregisterMountExtension(MountExtension toRemove)
toRemove
- MountExtension
to remove.public void unregisterAllExtensions()
public void beforeMount(java.util.List<<any>> results, Rect rect)
MountExtension.beforeMount(ExtensionState, Object, Rect)
for each RenderCoreExtension
that has a mount phase.results
- A map of RenderCoreExtension
to their results from the layout phase.public void afterMount()
public void notifyVisibleBoundsChanged(Rect rect)
public void notifyVisibleBoundsChangedForItem(java.lang.Object item)
public void startNotifyVisibleBoundsChangedSection()
public void endNotifyVisibleBoundsChangedSection()
public void onBindItem(RenderUnit renderUnit, java.lang.Object content, java.lang.Object layoutData)
public void onUnbindItem(RenderUnit renderUnit, java.lang.Object content, java.lang.Object layoutData)
public void onMountItem(RenderUnit renderUnit, java.lang.Object content, java.lang.Object layoutData)
public void onUnmountItem(RenderUnit renderUnit, java.lang.Object content, java.lang.Object layoutData)
public void onBoundsAppliedToItem(RenderTreeNode node, java.lang.Object content)
public ExtensionState getUnmountDelegateExtensionState()
public java.lang.Object getContentAt(int position)
public java.lang.Object getContentById(long id)
public boolean isRootItem(int position)
public boolean maybeLockForMount(RenderTreeNode renderTreeNode, int index)
public boolean isLockedForMount(RenderTreeNode renderTreeNode)
public boolean isLockedForMount(long id)
public void acquireMountRef(RenderTreeNode node)
public void acquireMountRef(long id)
public void acquireAndMountRef(RenderTreeNode node)
public void acquireAndMountRef(long id)
public void releaseMountRef(RenderTreeNode renderTreeNode)
public void releaseMountRef(long id)
public void releaseAndUnmountRef(RenderTreeNode renderTreeNode)
public void releaseAndUnmountRef(long id)
public void releaseAllAcquiredReferences()
public MountDelegateTarget getMountDelegateTarget()
public int getRefCount(long id)
public java.util.List<ExtensionState> getExtensionStates()