isAvailable
does not block the main thread anymore
This commit is contained in:
parent
15870f8a4e
commit
5493c652fd
@ -6,3 +6,4 @@
|
||||
- [enhancement:] New print options like `name`, `landscape` or `duplex`
|
||||
- [enhancement:] Ability to print remote content via URI
|
||||
- [enhancement:] Callback support
|
||||
- [bugfix:] `isAvailable` does not block the main thread anymore.
|
@ -100,6 +100,7 @@ cordova plugin rm de.appplant.cordova.plugin.printer
|
||||
- [enhancement:] New print options like `name`, `landscape` or `duplex`
|
||||
- [enhancement:] Ability to print remote content via URI
|
||||
- [enhancement:] Callback support
|
||||
- [bugfix:] `isAvailable` does not block the main thread anymore.
|
||||
|
||||
#### Further informations
|
||||
- See [CHANGELOG.md][changelog] to get the full changelog for the plugin.
|
||||
|
@ -38,6 +38,7 @@
|
||||
*/
|
||||
- (void) isAvailable:(CDVInvokedUrlCommand*)command
|
||||
{
|
||||
[self.commandDelegate runInBackground:^{
|
||||
CDVPluginResult* pluginResult;
|
||||
BOOL isAvailable = [self isPrintingAvailable];
|
||||
|
||||
@ -46,6 +47,7 @@
|
||||
|
||||
[self.commandDelegate sendPluginResult:pluginResult
|
||||
callbackId:command.callbackId];
|
||||
}];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user