public class VisibilityOutput
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
VisibilityOutput.Factory<R extends LayoutResult>
The factory that client frameworks must implement to enable
VisibilityExtension to
create a VisibilityOutput for every visited LayoutResult during the layout
pass. |
Modifier and Type | Field and Description |
---|---|
boolean |
hasMountableContent |
long |
mRenderUnitId |
Constructor and Description |
---|
VisibilityOutput(java.lang.String id,
java.lang.String key,
Rect bounds,
boolean hasMountableContent,
long renderUnitId,
float visibleHeightRatio,
float visibleWidthRatio,
Function<java.lang.Void> visibleEventHandler,
Function<java.lang.Void> invisibleEventHandler,
Function<java.lang.Void> focusedEventHandler,
Function<java.lang.Void> unfocusedEventHandler,
Function<java.lang.Void> fullImpressionEventHandler,
Function<java.lang.Void> visibilityChangedEventHandler) |
VisibilityOutput(java.lang.String id,
java.lang.String key,
Rect bounds,
float visibleHeightRatio,
float visibleWidthRatio,
Function<java.lang.Void> visibleEventHandler,
Function<java.lang.Void> invisibleEventHandler,
Function<java.lang.Void> focusedEventHandler,
Function<java.lang.Void> unfocusedEventHandler,
Function<java.lang.Void> fullImpressionEventHandler,
Function<java.lang.Void> visibilityChangedEventHandler) |
public final boolean hasMountableContent
public final long mRenderUnitId
public VisibilityOutput(java.lang.String id, java.lang.String key, Rect bounds, float visibleHeightRatio, float visibleWidthRatio, Function<java.lang.Void> visibleEventHandler, Function<java.lang.Void> invisibleEventHandler, Function<java.lang.Void> focusedEventHandler, Function<java.lang.Void> unfocusedEventHandler, Function<java.lang.Void> fullImpressionEventHandler, Function<java.lang.Void> visibilityChangedEventHandler)
public VisibilityOutput(java.lang.String id, java.lang.String key, Rect bounds, boolean hasMountableContent, long renderUnitId, float visibleHeightRatio, float visibleWidthRatio, Function<java.lang.Void> visibleEventHandler, Function<java.lang.Void> invisibleEventHandler, Function<java.lang.Void> focusedEventHandler, Function<java.lang.Void> unfocusedEventHandler, Function<java.lang.Void> fullImpressionEventHandler, Function<java.lang.Void> visibilityChangedEventHandler)
public java.lang.String getId()
RenderTree
.public java.lang.String getKey()
public Rect getBounds()
public float getVisibilityTop()
public float getVisibilityBottom()
public float getVisibilityLeft()
public float getVisibilityRight()
public float getFullImpressionTop()
public float getFullImpressionBottom()
public float getFullImpressionLeft()
public float getFullImpressionRight()
public float getFocusedTop()
public float getFocusedBottom()
public float getFocusedLeft()
public float getFocusedRight()
public int getComponentArea()
public float getVisibleHeightRatio()
public float getVisibleWidthRatio()
public void setFocusedRatio(float focusedRatio)
public Function<java.lang.Void> getVisibleEventHandler()
public Function<java.lang.Void> getInvisibleEventHandler()
public Function<java.lang.Void> getFocusedEventHandler()
public Function<java.lang.Void> getUnfocusedEventHandler()
public Function<java.lang.Void> getFullImpressionEventHandler()
public Function<java.lang.Void> getVisibilityChangedEventHandler()