Events
annotations.create
Detailed viewer event reference for annotations.create.
Summary
- Category: Annotations
- Event:
annotations.create - Trigger: Fires after annotations are created.
Payload
[ImmutableList<Annotation>];
Payload fields
Payload is not an object literal. Use the declaration above and runtime guards when handling this event.
Subscription example
function onEvent(payload) {
console.log('annotations.create', payload);
}
instance.addEventListener('annotations.create', onEvent);
instance.removeEventListener('annotations.create', onEvent);