getAllAnnotationsOfType

Returns all annotations of passed types in this document.

Note: this call may block for a while and should not be invoked on the main thread. You can use getAllAnnotationsOfTypeAsync instead.

Return

List of all annotations of passed types in a document.

Parameters

types

Annotation types to return. ALL_ANNOTATION_TYPES can be used as a shorthand parameter for all annotations.

See also


abstract fun getAllAnnotationsOfType(@NonNull types: EnumSet<AnnotationType>, startIndex: Int, pageCount: Int): List<Annotation>

Returns all annotations of passed types in the specified page index range.

Note: this call may block for a while and should not be invoked on the main thread. You can use getAllAnnotationsOfTypeAsync instead.

Return

List of all annotations of passed types in a document.

Parameters

types

Annotation types to return. ALL_ANNOTATION_TYPES can be used as a shorthand parameter for all annotations.

startIndex

Index of the page to start the search.

pageCount

Number of pages to be included, starting the count with the startIndex page.

See also