createAnnotationFromInstantJsonAsync

abstract fun createAnnotationFromInstantJsonAsync(@NonNull annotationJson: String): Single<Annotation>

Creates an annotation from the Instant JSON annotation format asynchronously. The JSON must contain the type, the page number and any other required properties for that type. The created annotation will be automatically added to the document, and any registered will be notified of the creation.

Return

Single emitting annotation imported from provided Instant JSON or an error if creation of the annotation from JSON failed.

Parameters

annotationJson

Instant JSON representation of the annotation to be created.

See also