public static interface StateMachine.StateHandler
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasRefreshStateListeners()
If a controller has any refresh state listeners.
|
boolean |
isValidOffset(int currentOffset)
Offset that can makes an indicator's hidden part visible.
|
void |
onStateChanged(int state,
java.lang.Throwable throwable)
A callback method when refresh state has changed.
|
int |
readyRefreshOffset()
A positive offset in content's coordinate system, if content's vertical
offset has reach this point then it can move to a ready or releasing to refresh state.
|
void |
resetOffset()
Reset offset.
|
void |
resetRefreshOffset()
Reset offset when in refreshing state.
|
int |
transform(int currentOffset)
Transform content's offset coordinate to indicator's coordinate system.
|
boolean isValidOffset(int currentOffset)
currentOffset - the current offset of contentint transform(int currentOffset)
currentOffset - current vertical offset of content view.int readyRefreshOffset()
boolean hasRefreshStateListeners()
void onStateChanged(int state,
java.lang.Throwable throwable)
state - current statethrowable - throwable when a state has changed if existsvoid resetRefreshOffset()
void resetOffset()