Skip to content

Commit

Permalink
fix(printer): fix implementation and add pick method
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed May 17, 2017
1 parent 7d63e80 commit 55071c0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/@ionic-native/plugins/printer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,22 @@ export class Printer extends IonicNativePlugin {
@Cordova()
isAvailable(): Promise<boolean> { return; }

/**
* Displays a system interface allowing the user to select an available printer. To speak with a printer directly you need to know the network address by picking them before via `printer.pick`.
*/
@Cordova()
pick(): Promise<any> { return; }

/**
* Sends content to the printer.
* @param content {string | HTMLElement} The content to print. Can be a URL or an HTML string. If a HTML DOM Object is provided, its innerHtml property value will be used.
* @param options {PrintOptions} optional. The options to pass to the printer
* @returns {Promise<any>}
*/
@Cordova()
@Cordova({
successIndex: 2,
errorIndex: 4
})
print(content: string | HTMLElement, options?: PrintOptions): Promise<any> { return; }

}

0 comments on commit 55071c0

Please sign in to comment.