Class DatabasePagingSource


  • public class DatabasePagingSource
    extends androidx.paging.rxjava3.RxPagingSource<String,​com.google.firebase.database.DataSnapshot>
    • Nested Class Summary

      • Nested classes/interfaces inherited from class androidx.paging.PagingSource

        androidx.paging.PagingSource.LoadParams<Key extends Object>, androidx.paging.PagingSource.LoadResult<Key extends Object,​Value extends Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      DatabasePagingSource​(com.google.firebase.database.Query query)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getRefreshKey​(androidx.paging.PagingState<String,​com.google.firebase.database.DataSnapshot> state)  
      io.reactivex.rxjava3.core.Single<androidx.paging.PagingSource.LoadResult<String,​com.google.firebase.database.DataSnapshot>> loadSingle​(androidx.paging.PagingSource.LoadParams<String> params)
      DatabaseError.fromStatus() is not meant to be public.
      • Methods inherited from class androidx.paging.rxjava3.RxPagingSource

        load
      • Methods inherited from class androidx.paging.PagingSource

        getInvalid, getJumpingSupported, getKeyReuseSupported, getOnInvalidatedCallbacks$paging_common, invalidate, registerInvalidatedCallback, unregisterInvalidatedCallback
    • Constructor Detail

      • DatabasePagingSource

        public DatabasePagingSource​(com.google.firebase.database.Query query)
    • Method Detail

      • loadSingle

        @NonNull
        public io.reactivex.rxjava3.core.Single<androidx.paging.PagingSource.LoadResult<String,​com.google.firebase.database.DataSnapshot>> loadSingle​(@NonNull
                                                                                                                                                            androidx.paging.PagingSource.LoadParams<String> params)
        DatabaseError.fromStatus() is not meant to be public.
        Specified by:
        loadSingle in class androidx.paging.rxjava3.RxPagingSource<String,​com.google.firebase.database.DataSnapshot>
      • getRefreshKey

        @Nullable
        public String getRefreshKey​(@NonNull
                                    androidx.paging.PagingState<String,​com.google.firebase.database.DataSnapshot> state)
        Specified by:
        getRefreshKey in class androidx.paging.PagingSource<String,​com.google.firebase.database.DataSnapshot>