mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 08:32:52 +08:00
feat(star-prnt): Added support for connected to devices with barcode readers (#2509)
This commit is contained in:
parent
7c355350fe
commit
58615f1cab
@ -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<any>} Success! if connected or error message string returned by the SDK.
|
||||
*/
|
||||
@Cordova({
|
||||
observable: true,
|
||||
callbackStyle: 'node'
|
||||
})
|
||||
connect(port: string, emulation: string): Observable<any> {
|
||||
connect(port: string, emulation: string, hasBarcodeReader: boolean): Observable<any> {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user