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
@@ -177,7 +177,7 @@ class PSPDFKitView extends React.Component {
177
177
*
178
178
* @param annotation InstantJson of the annotation to add.
179
179
*/
180
-
addAnnotation=function(annotation){
180
+
addAnnotation=function(annotation){
181
181
if(Platform.OS==="android"){
182
182
UIManager.dispatchViewManagerCommand(
183
183
findNodeHandle(this.refs.pdfView),
@@ -197,7 +197,7 @@ class PSPDFKitView extends React.Component {
197
197
*
198
198
* @param annotation InstantJson of the annotation to remove.
199
199
*/
200
-
removeAnnotation=function(annotation){
200
+
removeAnnotation=function(annotation){
201
201
if(Platform.OS==="android"){
202
202
UIManager.dispatchViewManagerCommand(
203
203
findNodeHandle(this.refs.pdfView),
@@ -217,13 +217,13 @@ class PSPDFKitView extends React.Component {
217
217
*
218
218
* Returns a promise resolving to document instant json (https://pspdfkit.com/guides/android/current/importing-exporting/instant-json/#instant-document-json-api-a56628).
219
219
*/
220
-
getAllUnsavedAnnotations=function(){
220
+
getAllUnsavedAnnotations=function(){
221
221
if(Platform.OS==="android"){
222
222
letrequestId=this._nextRequestId++;
223
223
letrequestMap=this._requestMap;
224
224
225
225
// We create a promise here that will be resolved once onDataReturned is called.
@@ -300,7 +300,7 @@ class PSPDFKitView extends React.Component {
300
300
* @param fullyQualifiedName The fully qualified name of the form element.
301
301
* @param value The string value form element. For button form elements pass 'selected' or 'deselected'. For choice form elements, pass the index of the choice to select, for example '1'.
@@ -315,6 +315,80 @@ class PSPDFKitView extends React.Component {
315
315
);
316
316
}
317
317
};
318
+
/**
319
+
* Set the left bar button items for the specified 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, bar button items for all view modes are set.
* Get the left bar button items for the specified view mode.
340
+
*
341
+
* @param viewMode The optional view mode. Can be 'document', 'thumbnails', 'documentEditor' or `null`. If `null` is passed, bar button items for the current view mode are returned.
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.'}
* Set the right bar button items for the specified 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, bar button items for all view modes are set.
* Get the right bar button items for the specified view mode.
377
+
*
378
+
* @param viewMode The optional view mode. Can be 'document', 'thumbnails', 'documentEditor' or `null`. If `null` is passed, bar button items for the current view mode are returned.
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