public static interface SwipeBack.OnStateChangeListener
| Modifier and Type | Method and Description |
|---|---|
void |
onSlide(float openRatio,
int offsetPixels)
Called when the swipe back slides.
|
void |
onStateChanged(int oldState,
int newState)
Called when the internal state has changed.
|
void onStateChanged(int oldState,
int newState)
oldState - The old drawer state.newState - The new drawer state.void onSlide(float openRatio,
int offsetPixels)
openRatio - Ratio for how open the swipe back view is.offsetPixels - Current offset of the swipe back view in pixels.