getDrawablesForPageAsync

open fun getDrawablesForPageAsync(@NonNull context: Context, @NonNull document: PdfDocument, @IntRange(from = 0) pageIndex: Int): Observable<out PdfDrawable>

Returns an observable for fetching all page drawables in an asynchronous manner. The default implementation uses the getDrawablesForPage method to retrieve the drawables. Subclasses may override this method to alter its behavior.

Return

An Observable emitting all drawables for the given document and page.

Parameters

context

Context for resource resolution.

document

The currently loaded PdfDocument.

pageIndex

Number of the page for which the drawables should be returned.