nativescript-woosim-printer
Version:
Plugin for integrating nativescript apps with Woosim Pr3 Printer.
60 lines (55 loc) • 2 kB
TypeScript
/// <reference path="android-declarations.d.ts"/>
declare module com {
export module ticnat {
export module prtsrv {
export class BluetoothPrintService {
public static class: java.lang.Class<com.ticnat.prtsrv.BluetoothPrintService>;
public static MESSAGE_DEVICE_NAME: number;
public static MESSAGE_TOAST: number;
public static MESSAGE_READ: number;
public static DEVICE_NAME: string;
public static TOAST: string;
public mAdapter: globalAndroid.bluetooth.BluetoothAdapter;
public static STATE_NONE: number;
public static STATE_LISTEN: number;
public static STATE_CONNECTING: number;
public static STATE_CONNECTED: number;
public constructor(param0: globalAndroid.os.Handler);
public stop(): void;
public connected(param0: globalAndroid.bluetooth.BluetoothSocket, param1: globalAndroid.bluetooth.BluetoothDevice, param2: string): void;
public write(param0: native.Array<number>): void;
public start(): void;
public getState(): number;
public connect(param0: globalAndroid.bluetooth.BluetoothDevice, param1: boolean): void;
}
export module BluetoothPrintService {
export class ConnectThread {
public static class: java.lang.Class<com.ticnat.prtsrv.BluetoothPrintService.ConnectThread>;
public run(): void;
}
export class ConnectedThread {
public static class: java.lang.Class<com.ticnat.prtsrv.BluetoothPrintService.ConnectedThread>;
public run(): void;
}
}
}
}
}
declare module com {
export module ticnat {
export module prtsrv {
export class BuildConfig {
public static class: java.lang.Class<com.ticnat.prtsrv.BuildConfig>;
public static DEBUG: boolean;
public static LIBRARY_PACKAGE_NAME: string;
public static APPLICATION_ID: string;
public static BUILD_TYPE: string;
public static FLAVOR: string;
public static VERSION_CODE: number;
public static VERSION_NAME: string;
public constructor();
}
}
}
}
//Generics information: