ReaderViewAnnotation

A ReaderViewAnnotation can either reference a range of publication content or a position (point) within publication content. ReaderViewAnnotations are rendered inside a ReaderViewAnnotationLayer, which in turn is rendered on top of publication content.

When an annotation is rendered, a container element is created. The container element dimensions and position is calculated from the bounding box encapsulating all referenced content.

Both range and position annotations, as well as their containers can be styled separately using CSS. You can also attach custom data to each ReaderViewAnnotation instance.

Properties

Link copied to clipboard
abstract var customData: Any?

Gets/sets custom data for this annotation

Link copied to clipboard
abstract val destroyed: Boolean

If this annotation has been destroyed.

Link copied to clipboard

If the content this annotation references is intersecting ReaderView.visibleRange. Use ReaderViewAnnotationLayer.addOnAnnotationIntersectsVisibleRangeChangedListener to detect when this value changes.

Link copied to clipboard

The locator used by this annotation.

Link copied to clipboard

Gets/sets options for this annotation to be used instead of ReaderViewAnnotationLayer.defaultAnnotationOptions.