getAnnotationsAsync

abstract fun getAnnotationsAsync(@IntRange(from = 0) pageIndex: Int): Observable<List<Annotation>>

Returns list of annotations on the page. For annotations not currently recognised and handled by PSPDFKit this returns UnknownAnnotation.

Return

Observable stream of annotations on page.

Parameters

pageIndex

0-indexed page number.


abstract fun getAnnotationsAsync(@NonNull objectNumbers: Collection<Integer>): Observable<List<Annotation>>

Returns annotations with given object numbers, asynchronously.

Return

Observable emitting list of found annotations.

Parameters

objectNumbers

Collection of object numbers to search for.