@nativescript-asharghi/nativescript-star-prnt
Add a plugin description
npm i --save @nativescript-asharghi/nativescript-star-prnt
- Version: 0.0.3
- GitHub:
- NPM: https://www.npmjs.com/package/%40nativescript-asharghi%2Fnativescript-star-prnt
- Downloads:
- Last Day: 0
- Last Week: 3
- Last Month: 10
@nativescript-asharghi/nativescript-star-prnt
npm install @nativescript-asharghi/nativescript-star-prnt
Usage
import { StarPRNT } from '@nativescript-asharghi/nativescript-star-prnt';
async function portDiscovery() {
try {
const printers = await StarPRNT.portDiscovery('All');
console.log(printers);
} catch (e) {
console.error(e);
}
}
Android
If using a bluetooth print the following permission is required
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
iOS
If using a bluetooth print add following to your Info.plist
<key>UISupportedExternalAccessoryProtocols</key>
<array>
<string>jp.star-m.starpro</string>
</array>
Documentation
License
Apache License Version 2.0