CPDFEvent enum

Adds event listener callbacks. Use ComPDFKit.addEventListener(CPDFEvent event, CPDFOnEventsCallback callback) to register. See example at example/lib/cpdf_event_listener_example.dart Example: controller.addEventListener(CPDFEvent.annotationsCreated, (event) { debugPrint('ComPDFKit: Annotation created: Type=${event.runtimeType}'); printJsonString(jsonEncode(event)); });

Inheritance
Available extensions

Values

annotationsCreated → const CPDFEvent

Fired when an annotation is created. Data type: CPDFAnnotation and its subclasses.

annotationsSelected → const CPDFEvent

Fired when an annotation is selected. Data type: CPDFAnnotation and its subclasses.

annotationsDeselected → const CPDFEvent

Fired when an annotation is deselected. Data type: CPDFAnnotation and its subclasses. Data may be null.

formFieldsCreated → const CPDFEvent

Fired when a form field is created. Data type: CPDFWidget and its subclasses.

formFieldsSelected → const CPDFEvent

Fired when a form field is selected. Data type: CPDFWidget and its subclasses.

formFieldsDeselected → const CPDFEvent

Fired when a form field is deselected. Data type: CPDFWidget and its subclasses. Data may be null.

editorSelectionSelected → const CPDFEvent

Fired when a content editor element is selected. Data type: CPDFEditArea and its subclasses. image: CPDFEditImageArea text: CPDFEditTextArea

editorSelectionDeselected → const CPDFEvent

Fired when a content editor element is deselected. No data returned.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<CPDFEvent>
A constant List of the values in this enum, in order of their declaration.