public static interface SwipeGestureEventHandler.Callback
SwipeGestureEventHandler
, must implement.Modifier and Type | Method and Description |
---|---|
void |
onSwitchingBetweenTabs(int selectedTabIndex,
float distance)
The method, which is invoked, when switching between neighboring tabs.
|
void |
onSwitchingBetweenTabsEnded(int selectedTabIndex,
int previousSelectedTabIndex,
float velocity,
long animationDuration)
The method, which is invoked, when switching between neighboring tabs ended.
|
void onSwitchingBetweenTabs(int selectedTabIndex, float distance)
selectedTabIndex
- The index of the currently selected tab as an Integer
valuedistance
- The distance, the currently selected tab is swiped by, in pixels as a Float
valuevoid onSwitchingBetweenTabsEnded(int selectedTabIndex, int previousSelectedTabIndex, float velocity, long animationDuration)
selectedTabIndex
- The index of the tab, which should become selected, as an Integer
valuepreviousSelectedTabIndex
- The index of the previously selected tab as an Integer
valuevelocity
- The velocity of the swipe gesture in pixels per second as a Float
valueanimationDuration
- The duration of the swipe animation in milliseconds as a Long
value