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: index.js
+39-35Lines changed: 39 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -315,16 +315,16 @@ class PSPDFKitView extends React.Component {
315
315
);
316
316
}
317
317
};
318
-
/**
319
-
* Set the left bar button items for the spcified view mode
320
-
* Note: The same button item cannot be added to both the left and right bar button items simultaneously.
321
-
*
322
-
* @param items The list of bar button items. See the full list of button items here: https://pspdfkit.com/api/ios/Classes/PSPDFViewController.html#/Toolbar%20button%20items
323
-
* @param viewMode The optional view mode. Can be 'document', 'thumbnails', 'documentEditor' or null.
324
-
* @param animated The animated flag.
325
-
*
326
-
* @platform ios
327
-
*/
318
+
/**
319
+
* Set the left bar button items for the spcified view mode.
320
+
* Note: The same button item cannot be added to both the left and right bar button items simultaneously.
321
+
*
322
+
* @param items The list of bar button items. See the full list of button items here: https://pspdfkit.com/api/ios/Classes/PSPDFViewController.html#/Toolbar%20button%20items
323
+
* @param viewMode The optional view mode. Can be 'document', 'thumbnails', 'documentEditor' or null. If `null` is passed, we set the bar button items for all view modes.
@@ -335,13 +335,15 @@ class PSPDFKitView extends React.Component {
335
335
);
336
336
}
337
337
};
338
-
/**
339
-
* Get the left bar button items for the spcified view mode
340
-
*
341
-
* @param viewMode The optional view mode. Can be 'document', 'thumbnails', 'documentEditor' or null.
342
-
*
343
-
* @platform ios
344
-
*/
338
+
/**
339
+
* Get the left bar button items for the spcified view mode.
340
+
*
341
+
* @param viewMode The optional view mode. Can be 'document', 'thumbnails', 'documentEditor' or null. If `null` is passed, we default to the current view mode.
342
+
*
343
+
* Returns a promise resolving an array with the following structure:
344
+
* ['outlineButtonItem', 'searchButtonItem'] or a dictionary with the following error {'error' : 'Failed to get the left bar button items.'}
@@ -350,16 +352,16 @@ class PSPDFKitView extends React.Component {
350
352
);
351
353
}
352
354
};
353
-
/**
354
-
* Set the right bar button items for the spcified view mode
355
-
* Note: The same button item cannot be added to both the left and right bar button items simultaneously.
356
-
*
357
-
* @param items The list of bar button items. See the full list of button items here: https://pspdfkit.com/api/ios/Classes/PSPDFViewController.html#/Toolbar%20button%20items
358
-
* @param viewMode The optional view mode. Can be 'document', 'thumbnails', 'documentEditor' or null.
359
-
* @param animated The animated flag.
360
-
*
361
-
* @platform ios
362
-
*/
355
+
/**
356
+
* Set the right bar button items for the spcified view mode.
357
+
* Note: The same button item cannot be added to both the left and right bar button items simultaneously.
358
+
*
359
+
* @param items The list of bar button items. See the full list of button items here: https://pspdfkit.com/api/ios/Classes/PSPDFViewController.html#/Toolbar%20button%20items
360
+
* @param viewMode The optional view mode. Can be 'document', 'thumbnails', 'documentEditor' or null. If `null` is passed, we set the bar button items for all view modes.
@@ -370,13 +372,15 @@ class PSPDFKitView extends React.Component {
370
372
);
371
373
}
372
374
};
373
-
/**
374
-
* Get the right bar button items for the spcified view mode
375
-
*
376
-
* @param viewMode The optional view mode. Can be 'document', 'thumbnails', 'documentEditor' or null.
377
-
*
378
-
* @platform ios
379
-
*/
375
+
/**
376
+
* Get the right bar button items for the spcified view mode.
377
+
*
378
+
* @param viewMode The optional view mode. Can be 'document', 'thumbnails', 'documentEditor' or null. If `null` is passed, we default to the current view mode.
379
+
*
380
+
* Returns a promise resolving an array with the following structure:
381
+
* ['annotationButtonItem', 'documentEditorButtonItem'] or a dictionary with the following error {'error' : 'Failed to get the right bar button items.'}
0 commit comments