hasUnsavedChanges abstract method
Whether the document has unsaved changes that save would persist.
Platform semantics differ in what the underlying SDK can report:
| Platform | Backed by | Covers |
|---|---|---|
| Android | annotation ∥ form ∥ bookmark provider hasUnsavedChanges() |
annotations, forms, bookmarks |
| iOS | Document.hasDirtyAnnotations |
annotations (form and bookmark changes may not be reflected) |
| Web | Instance.hasUnsavedChanges() |
annotations, forms, bookmarks, comments |
For exact dirty tracking on iOS — or to react to changes as they happen —
combine this with event-based tracking on controller.events (see the
manual-save catalog example and the dirty-state tracking guide).
Implementation
Future<bool> hasUnsavedChanges();