You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -403,23 +403,22 @@ The following events are supported by the PSPDFKitPlugin class
403
403
Annotation API
404
404
---------------
405
405
406
-
407
406
The methods below allows you to programmatically access, add, and remove annotations using the Instant JSON format: https://pspdfkit.com/guides/ios/current/importing-exporting/instant-json/
408
407
409
408
// Add multiple annotations using an Instant JSON Document payload - https://pspdfkit.com/guides/ios/current/importing-exporting/instant-json/#instant-document-json-api
410
-
addAnnotations: ['jsonAnnotations', 'callback'],
409
+
addAnnotations(jsonAnnotations, [callback]);
411
410
412
411
// Add a single annotation using an Instant JSON Annotation payload - https://pspdfkit.com/guides/ios/current/importing-exporting/instant-json/#instant-annotation-json-api
413
-
addAnnotation: ['jsonAnnotation', 'callback'],
412
+
addAnnotation(jsonAnnotation, [callback]);
414
413
415
414
// Remove an annotation.
416
-
removeAnnotation: ['jsonAnnotation', 'callback'],
415
+
removeAnnotation(jsonAnnotation, [callback]);
417
416
418
417
// Get all the annotations at the specified page index by type.
0 commit comments