From 3d9aa7b9d5a4326421e077f3885a4875779947d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastia=CC=81n=20Katzer?= Date: Thu, 22 Aug 2013 22:42:28 +0200 Subject: [PATCH] =?UTF-8?q?Kleine=20Namens=C3=A4nderung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ios/APPPrinter.m | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ios/APPPrinter.m b/src/ios/APPPrinter.m index b4ad32d..b5e082e 100755 --- a/src/ios/APPPrinter.m +++ b/src/ios/APPPrinter.m @@ -17,7 +17,7 @@ // Stellt die Eigenschaften des Druckers ein. - (UIPrintInteractionController *) adjustSettingsForPrintController:(UIPrintInteractionController *)controller; // Lädt den zu druckenden Content in ein WebView, welcher vom Drucker ausgedruckt werden soll. -- (void) loadHTML:(NSString *)content intoPrintController:(UIPrintInteractionController *)controller; +- (void) loadContent:(NSString *)content intoPrintController:(UIPrintInteractionController *)controller; // Ruft den Callback auf und informiert diesen über den das Ergebnis des Druckvorgangs. - (void) informAboutResult:(BOOL)success serviceAvailable:(BOOL)available error:(NSString *)error callbackId:(NSString *)callbackId; // Überprüft, ob der Drucker-Dienst verfügbar ist @@ -30,7 +30,6 @@ /* * Is printing available. - * Callback returns true/false if printing is available/unavailable. */ - (void) isServiceAvailable:(CDVInvokedUrlCommand *)command { @@ -60,7 +59,7 @@ UIPrintInteractionController* controller = [self getPrintController]; [self adjustSettingsForPrintController:controller]; - [self loadHTML:content intoPrintController:controller]; + [self loadContent:content intoPrintController:controller]; [controller presentAnimated:YES completionHandler:^(UIPrintInteractionController* printController, BOOL completed, NSError* error) { [self informAboutResult:completed serviceAvailable:TRUE error:(error ? error.localizedDescription : @"null") callbackId:command.callbackId]; @@ -98,7 +97,7 @@ * @param {NSString} content * @param {UIPrintInteractionController *} controller */ -- (void) loadHTML:(NSString *)content intoPrintController:(UIPrintInteractionController *)controller +- (void) loadContent:(NSString *)content intoPrintController:(UIPrintInteractionController *)controller { // Set the base URL to be the www directory. NSString* wwwFilePath = [[NSBundle mainBundle] pathForResource:@"www" ofType:nil];