Interface Carousel.OnPageChanged

Enclosing class:
Carousel
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Carousel.OnPageChanged
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onPageChanged(int index)
    This signal is emitted after a page has been changed.
  • Method Details

    • onPageChanged

      void onPageChanged(int index)
      This signal is emitted after a page has been changed.

      It can be used to implement "infinite scrolling" by amending the pages
      after every scroll.
      Parameters:
      index - current page