public class VisibilityExtension extends RenderCoreExtension<VisibilityExtension.Results,VisibilityMountExtension.VisibilityMountExtensionState>
Modifier and Type | Class and Description |
---|---|
static class |
VisibilityExtension.Results |
static class |
VisibilityExtension.Visitor |
Constructor and Description |
---|
VisibilityExtension(VisibilityOutput.Factory<?> factory) |
Modifier and Type | Method and Description |
---|---|
VisibilityExtension.Results |
createInput()
Should return a new
Input > to which the LayoutResultVisitor can write into. |
VisibilityExtension.Visitor |
getLayoutVisitor()
The extension can optionally return a
LayoutResultVisitor for every layout pass which
will visit every LayoutResult . |
VisibilityMountExtension<VisibilityExtension.Results> |
getMountExtension()
The extension can optionally return a
MountExtension which can be used to augment the
RenderCore's mounting phase. |
afterMount, beforeMount, notifyVisibleBoundsChanged, recursivelyNotifyVisibleBoundsChanged, recursivelyNotifyVisibleBoundsChanged, shouldUpdate
public VisibilityExtension(VisibilityOutput.Factory<?> factory)
public VisibilityExtension.Visitor getLayoutVisitor()
RenderCoreExtension
LayoutResultVisitor
for every layout pass which
will visit every LayoutResult
. The visitor should be functional and immutable.getLayoutVisitor
in class RenderCoreExtension<VisibilityExtension.Results,VisibilityMountExtension.VisibilityMountExtensionState>
LayoutResultVisitor
.public VisibilityMountExtension<VisibilityExtension.Results> getMountExtension()
RenderCoreExtension
MountExtension
which can be used to augment the
RenderCore's mounting phase. The Input >
collected in the latest layout pass will be
passed to the extension before mount.getMountExtension
in class RenderCoreExtension<VisibilityExtension.Results,VisibilityMountExtension.VisibilityMountExtensionState>
MountExtension
.public VisibilityExtension.Results createInput()
RenderCoreExtension
Input >
to which the LayoutResultVisitor
can write into.createInput
in class RenderCoreExtension<VisibilityExtension.Results,VisibilityMountExtension.VisibilityMountExtensionState>
Input >
for LayoutResultVisitor
to write into.