Class SimpleBoundaryDecider

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      boolean canRefresh(View content) Determine whether pull-down refresh can start based on content view state.
      boolean canLoadMore(View content) Determine whether pull-up load more can start based on content view state.
      • Methods inherited from class java.lang.Object

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

      • SimpleBoundaryDecider

        SimpleBoundaryDecider()
    • Method Detail

      • canRefresh

         boolean canRefresh(View content)

        Determine whether pull-down refresh can start based on content view state.

        Parameters:
        content - Content view
        Returns:

        true will trigger pull-down refresh

      • canLoadMore

         boolean canLoadMore(View content)

        Determine whether pull-up load more can start based on content view state.

        Parameters:
        content - Content view
        Returns:

        true will trigger load more