@nativescript-asharghi/nativescript-star-prnt
Add a plugin description
npm i --save @nativescript-asharghi/nativescript-star-prnt

@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