public static interface WelcomePage.OnChangeListener
Modifier and Type | Method and Description |
---|---|
void |
onWelcomeScreenPageScrolled(int pageIndex,
float offset,
int offsetPixels)
Called when this page is coming into view
|
void |
onWelcomeScreenPageScrollStateChanged(int pageIndex,
int state)
Called when the scroll state of the ViewPager changes
|
void |
onWelcomeScreenPageSelected(int pageIndex,
int selectedPageIndex)
Called when the selected page changes
|
void onWelcomeScreenPageScrolled(int pageIndex, float offset, int offsetPixels)
pageIndex
- The position index of this pageoffset
- The % offset of this page, negative if page is off the screen on the right, positive if off on the leftoffsetPixels
- The offset of this page in pixels, negative if page is off the screen on the right, positive if off on the leftvoid onWelcomeScreenPageSelected(int pageIndex, int selectedPageIndex)
pageIndex
- The position index of this pageselectedPageIndex
- The index of the page that was selectedvoid onWelcomeScreenPageScrollStateChanged(int pageIndex, int state)
pageIndex
- The position index of this pagestate
- The new scroll state