xcloudsdk
Version:
xcloud sdk
23 lines (22 loc) • 783 B
TypeScript
import { SdkResult } from "../entity";
import { PrintFuncType } from "../entity/FuncName";
import { ICloudPrint, Printer } from "../interface/ICloudPrint";
import { appSdkBase } from "./appSdkBase";
declare class CloudPrint extends appSdkBase<PrintFuncType> implements ICloudPrint {
constructor();
private isOpen;
private socketTask;
private hearteatInterval;
private printerList;
private startHeartbeat;
private printResult;
private close;
Init(printServer: {
wssUrl: string;
token: string;
}): Promise<SdkResult<Array<Printer>>>;
Print(template: any, data: [], client: string, printerName?: string): Promise<SdkResult<string>>;
Close(): SdkResult<void>;
}
declare const _default: CloudPrint;
export default _default;