createAnnotation

abstract fun createAnnotation(locator: SimpleLocatorData, customData: Any? = null): ReaderViewAnnotation

Create a new annotation to this layer using a locator referencing publication content. Additionally one can pass in some customData that will be accessible from the annotation instance.