getAnnotations

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

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

Note: this call may block for a while and should not be invoked on the main thread.

Return

List of annotations on the page with the given page number.

Parameters

pageIndex

0-indexed page number.


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

Returns annotations with given object numbers.

Return

List of resolved annotations.

Parameters

objectNumbers

Collection of object numbers to search for.