From 58615f1cab2cea2a819352f0beb5005d3444acee Mon Sep 17 00:00:00 2001 From: Geoff Tripoli Date: Sat, 19 May 2018 03:14:30 -0700 Subject: [PATCH] feat(star-prnt): Added support for connected to devices with barcode readers (#2509) --- src/@ionic-native/plugins/star-prnt/index.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/@ionic-native/plugins/star-prnt/index.ts b/src/@ionic-native/plugins/star-prnt/index.ts index 777e7c936..cfaec8480 100644 --- a/src/@ionic-native/plugins/star-prnt/index.ts +++ b/src/@ionic-native/plugins/star-prnt/index.ts @@ -134,13 +134,13 @@ export interface PrintCommand { appendRaw?: string; /** - * Data (Command) is added to the command buffer. Takes an array of bytes. + * Data (Command) is added to the command buffer. Takes an array of bytes. * Example: {appendBytes:[0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x2e]} */ appendBytes?: Array; /** - * Data (Command) is added to the command buffer. Takes an array of bytes. + * Data (Command) is added to the command buffer. Takes an array of bytes. * Example: {appendRawBytes:[0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x20, 0x57, 0x6f, 0x72, 0x6c, 0x64, 0x2e]} */ appendRawBytes?: Array; @@ -951,13 +951,14 @@ export class StarPRNT extends IonicNativePlugin { * Allows you to connect to the printer, keep the connection alive and receive status updates through an observable * @param {string} port printer name i.e BT:StarMicronics. * @param {string} emulation StarPrinter Emulation type: "StarPRNT", "StarPRNTL", "StarLine", "StarGraphic", "EscPos", "EscPosMobile", "StarDotImpact" + * @param {boolean} hasBarcodeReader Set to true if the device has a barcode reader (e.g. mPop) * @return {Observable} Success! if connected or error message string returned by the SDK. */ @Cordova({ observable: true, callbackStyle: 'node' }) - connect(port: string, emulation: string): Observable { + connect(port: string, emulation: string, hasBarcodeReader: boolean): Observable { return; }