mirror of
https://gitee.com/shuto/cordova-plugin-file-opener2.git
synced 2025-01-31 12:02:49 +08:00
Apply same fix for open with preview functionality
This commit is contained in:
parent
68392bdaf2
commit
64c15579ed
@ -118,6 +118,7 @@ NSString* callbackId = nil;
|
|||||||
nil
|
nil
|
||||||
];
|
];
|
||||||
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsDictionary:jsonObj];
|
pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR messageAsDictionary:jsonObj];
|
||||||
|
[self.commandDelegate sendPluginResult:pluginResult callbackId:callbackId];
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -126,7 +127,11 @@ NSString* callbackId = nil;
|
|||||||
|
|
||||||
@implementation FileOpener2 (UIDocumentInteractionControllerDelegate)
|
@implementation FileOpener2 (UIDocumentInteractionControllerDelegate)
|
||||||
- (void)documentInteractionControllerDidDismissOpenInMenu:(UIDocumentInteractionController *)controller {
|
- (void)documentInteractionControllerDidDismissOpenInMenu:(UIDocumentInteractionController *)controller {
|
||||||
[self.commandDelegate sendPluginResult:pluginResult callbackId:callbackId];
|
[self.commandDelegate sendPluginResult:pluginResult callbackId:callbackId];
|
||||||
|
}
|
||||||
|
|
||||||
|
- (void)documentInteractionControllerDidEndPreview:(UIDocumentInteractionController *)controller {
|
||||||
|
[self.commandDelegate sendPluginResult:pluginResult callbackId:callbackId];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (UIViewController *)documentInteractionControllerViewControllerForPreview:(UIDocumentInteractionController *)controller {
|
- (UIViewController *)documentInteractionControllerViewControllerForPreview:(UIDocumentInteractionController *)controller {
|
||||||
|
Loading…
Reference in New Issue
Block a user