getAnnotation

abstract fun getAnnotation(@IntRange(from = 0) pageIndex: Int, objectNumber: Int): Annotation

Returns annotation with certain object ID on the page if it exists.

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

Return

The requested annotation or null if not found.

Parameters

pageIndex

Page index of the page where the annotation is.

objectNumber

Object number of the annotation to retrieve.