@nativescript-asharghi/nativescript-star-prnt
v0.0.4
Published
Add a plugin description
Downloads
36
Maintainers
Readme
@nativescript-asharghi/nativescript-star-prnt
npm install @nativescript-asharghi/nativescript-star-prntUsage
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
