public class VisibilityMountExtension<Input extends VisibilityExtensionInput> extends MountExtension<Input,VisibilityMountExtension.VisibilityMountExtensionState>
Modifier and Type | Class and Description |
---|---|
static class |
VisibilityMountExtension.VisibilityMountExtensionState |
beforeMountItem, canPreventMount, createExtensionState, getContentAt, getContentById, getMountTarget, isLockedForMount, isLockedForMount, isRootItem, onBindItem, onBoundsAppliedToItem, onMountItem, onUnbindItem, onUnmountItem, shouldUpdateItem
public static VisibilityMountExtension getInstance()
public VisibilityMountExtension.VisibilityMountExtensionState createState()
createState
in class MountExtension<Input extends VisibilityExtensionInput,VisibilityMountExtension.VisibilityMountExtensionState>
public void beforeMount(ExtensionState<VisibilityMountExtension.VisibilityMountExtensionState> extensionState, Input input, Rect localVisibleRect)
MountExtension
beforeMount
in class MountExtension<Input extends VisibilityExtensionInput,VisibilityMountExtension.VisibilityMountExtensionState>
extensionState
- The inner state of this extension when beforeMount is called.input
- The new input the extension should use.public void afterMount(ExtensionState<VisibilityMountExtension.VisibilityMountExtensionState> extensionState)
MountExtension
afterMount
in class MountExtension<Input extends VisibilityExtensionInput,VisibilityMountExtension.VisibilityMountExtensionState>
public void onVisibleBoundsChanged(ExtensionState<VisibilityMountExtension.VisibilityMountExtensionState> extensionState, Rect localVisibleRect)
MountExtension
onVisibleBoundsChanged
in class MountExtension<Input extends VisibilityExtensionInput,VisibilityMountExtension.VisibilityMountExtensionState>
public void onUnbind(ExtensionState<VisibilityMountExtension.VisibilityMountExtensionState> extensionState)
MountExtension
onUnbind
in class MountExtension<Input extends VisibilityExtensionInput,VisibilityMountExtension.VisibilityMountExtensionState>
public void onUnmount(ExtensionState<VisibilityMountExtension.VisibilityMountExtensionState> extensionState)
MountExtension
onUnmount
in class MountExtension<Input extends VisibilityExtensionInput,VisibilityMountExtension.VisibilityMountExtensionState>
public static java.util.Map<java.lang.String,VisibilityItem> getVisibilityIdToItemMap(ExtensionState<VisibilityMountExtension.VisibilityMountExtensionState> extensionState)
public static void clearVisibilityItems(ExtensionState<VisibilityMountExtension.VisibilityMountExtensionState> extensionState)
@Deprecated public static void setRootHost(ExtensionState<VisibilityMountExtension.VisibilityMountExtensionState> extensionState, Host root)
public static void notifyOnUnbind(ExtensionState<VisibilityMountExtension.VisibilityMountExtensionState> extensionState)
public static void processVisibilityOutputs(ExtensionState<VisibilityMountExtension.VisibilityMountExtensionState> extensionState, Rect localVisibleRect, boolean isDirty)
public static boolean shouldProcessVisibilityOutputs(ExtensionState<VisibilityMountExtension.VisibilityMountExtensionState> extensionState)
public static int getVisibleTop(Rect itemBounds, Rect itemIntersection)
public static int getVisibleLeft(Rect itemBounds, Rect itemIntersection)
public static int getVisibleWidth(Rect itemIntersection)
public static int getVisibleHeight(Rect itemIntersection)
public static int getRootHostViewWidth(ExtensionState<VisibilityMountExtension.VisibilityMountExtensionState> extensionState)
public static int getRootHostViewHeight(ExtensionState<VisibilityMountExtension.VisibilityMountExtensionState> extensionState)