Skip to content

Commit e6a9778

Browse files
author
Rad Azzouz
committed
Fix formatting for the newly added methods in the README
1 parent ad840de commit e6a9778

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -403,23 +403,22 @@ The following events are supported by the PSPDFKitPlugin class
403403
Annotation API
404404
---------------
405405

406-
407406
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/
408407

409408
// 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]);
411410

412411
// 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]);
414413

415414
// Remove an annotation.
416-
removeAnnotation: ['jsonAnnotation', 'callback'],
415+
removeAnnotation(jsonAnnotation, [callback]);
417416

418417
// Get all the annotations at the specified page index by type.
419-
getAnnotations: ['pageIndex', 'type', 'callback'],
418+
getAnnotations(pageIndex, type, [callback]);
420419

421420
// Get all unsaved annotations.
422-
getAllUnsavedAnnotations: ['callback']
421+
getAllUnsavedAnnotations(callback(value));
423422

424423

425424
Forms API
@@ -428,10 +427,10 @@ Forms API
428427
The following methods allow you to programmatically fill forms and get the value of a form field.
429428

430429
// Sets the form field value by specifying its fully qualified name.
431-
setFormFieldValue: ['value', 'fullyQualifiedName', 'callback'],
430+
setFormFieldValue(value, fullyQualifiedName, [callback]);
432431

433432
// Gets the form field value by specifying its fully qualified name.
434-
getFormFieldValue: ['fullyQualifiedName', 'callback'],
433+
getFormFieldValue(fullyQualifiedName, callback(value));
435434

436435
License
437436
------------

0 commit comments

Comments
 (0)