public class VisibilityItem
extends java.lang.Object
Constructor and Description |
---|
VisibilityItem(java.lang.String key,
Function<java.lang.Void> invisibleHandler,
Function<java.lang.Void> unfocusedHandler,
Function<java.lang.Void> visibilityChangedHandler) |
Modifier and Type | Method and Description |
---|---|
boolean |
doNotClearInThisPass() |
Function<java.lang.Void> |
getInvisibleHandler()
Returns the invisible event handler.
|
java.lang.String |
getKey() |
Function<java.lang.Void> |
getUnfocusedHandler()
Returns the unfocused event handler.
|
Function<java.lang.Void> |
getVisibilityChangedHandler() |
boolean |
isInFocusedRange() |
boolean |
isInFullImpressionRange()
Returns true if the component associated with this VisibilityItem is in the full impression
range.
|
void |
setDoNotClearInThisPass(boolean doNotClearInThisPass) |
void |
setFocusedRange(boolean isFocused) |
void |
setInvisibleHandler(Function<java.lang.Void> invisibleHandler)
Sets the invisible event handler.
|
void |
setUnfocusedHandler(Function<java.lang.Void> unfocusedHandler)
Sets the unfocused event handler.
|
void |
setVisibleEdges(Rect componentBounds,
Rect componentVisibleBounds)
Sets the flags corresponding to the edges of the component that are visible.
|
void |
setWasFullyVisible(boolean fullyVisible) |
boolean |
wasFullyVisible() |
public java.lang.String getKey()
public void setInvisibleHandler(Function<java.lang.Void> invisibleHandler)
public Function<java.lang.Void> getInvisibleHandler()
public void setUnfocusedHandler(Function<java.lang.Void> unfocusedHandler)
public Function<java.lang.Void> getUnfocusedHandler()
public Function<java.lang.Void> getVisibilityChangedHandler()
public boolean isInFocusedRange()
public void setFocusedRange(boolean isFocused)
public boolean isInFullImpressionRange()
public void setVisibleEdges(Rect componentBounds, Rect componentVisibleBounds)
public boolean doNotClearInThisPass()
public void setDoNotClearInThisPass(boolean doNotClearInThisPass)
public boolean wasFullyVisible()
public void setWasFullyVisible(boolean fullyVisible)