capacitor blue print
npm install blueprint
npx cap sync
echo(options: { value: string; }) => Promise<{ value: string; }>
Param |
Type |
options |
{ value: string; } |
Returns: Promise<{ value: string; }>
list() => Promise<{ devices: BluetoothDevice[]; }>
Returns: Promise<{ devices: BluetoothDevice[]; }>
connect(options: { address: string; }) => Promise<void>
Param |
Type |
options |
{ address: string; } |
print(options: { address: string; data: string; printType: string; }) => Promise<void>
Param |
Type |
options |
{ address: string; data: string; printType: string; } |
disconnect() => Promise<void>
connectAndPrint(options: { address: string; data: string; printType: string; }) => Promise<void>
Param |
Type |
options |
{ address: string; data: string; printType: string; } |
{ name: string, address: string, type: BluetoothDeviceType }
Members |
Value |
Unknown |
"unknown" |
Classic |
"classic" |
Le |
"le" |
Dual |
"dual" |