android-components / mozilla.components.feature.sitepermissions / SitePermissionsStorage / getSitePermissionsPaged

getSitePermissionsPaged

fun getSitePermissionsPaged(): Factory<Int, SitePermissions> (source)

Returns all saved SitePermissions instances as a DataSource.Factory.

A consuming app can transform the data source into a LiveData<PagedList> of when using RxJava2 into a Flowable<PagedList> or Observable<PagedList>, that can be observed.

  • https://developer.android.com/topic/libraries/architecture/paging/data
  • https://developer.android.com/topic/libraries/architecture/paging/ui