public interface

ProgressDataProvider

com.pspdfkit.document.providers.ProgressDataProvider

Class Overview

ProgressDataProvider is an interface which should be implemented by any DataProvider that should support providing document loading progress updates.

Summary

Fields
public static final Flowable<Double> COMPLETE Can be returned if no real progress updates are available.
Public Methods
abstract Flowable<Double> observeProgress()
Returns an Flowable that emits values from 0 to 1 indicating the current loading progress of this document.

Fields

public static final Flowable<Double> COMPLETE

Can be returned if no real progress updates are available.

Public Methods

public abstract Flowable<Double> observeProgress ()

Returns an Flowable that emits values from 0 to 1 indicating the current loading progress of this document. You can return COMPLETE if you don't want to provide progress updates.