Interface OnPagedDataLoader

  • All Implemented Interfaces:

    
    public interface OnPagedDataLoader
    
                        

    Paged data loading interface.

    Since:

    5.12.0

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void )>loadPrevious(OnDataChangeListener<Boolean> listener) Loads the previous page of data.
      abstract void )>loadNext(OnDataChangeListener<Boolean> listener) Loads the next page of data.
      abstract boolean hasNext() Returns whether there is a next page.
      boolean hasPrevious() Returns whether there is a previous page.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • loadPrevious

         void )>loadPrevious(OnDataChangeListener<Boolean> listener)

        Loads the previous page of data.

        Parameters:
        listener - the load completion listener
      • loadNext

         abstract void )>loadNext(OnDataChangeListener<Boolean> listener)

        Loads the next page of data.

        Parameters:
        listener - the load completion listener
      • hasNext

         abstract boolean hasNext()

        Returns whether there is a next page.

        Returns:

        true if more data is available

      • hasPrevious

         boolean hasPrevious()

        Returns whether there is a previous page.

        Returns:

        true if a previous page is available