Events

annotations.willSave

Detailed viewer event reference for annotations.willSave.

Summary

  • Category: Annotations
  • Event: annotations.willSave
  • Trigger: Fires before annotations are persisted.

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.willSave', payload);
}

instance.addEventListener('annotations.willSave', onEvent);
instance.removeEventListener('annotations.willSave', onEvent);