c9-gun-api-capacitor-plugin

C9 Gun Devices API Plugin

Install

npm install https://github.com/hschindler/c9-gun-api-capacitor-plugin.git
npx cap sync

API dependencies info

*.so files have to copied in android/src/main/jniLibs/arm... *.jar files have to copied to android/libs

API

echo(...)

echo(options: { value: string; }) => Promise<{ value: string; }>
Param Type
options { value: string; }

Returns: Promise<{ value: string; }>


getFirmware()

getFirmware() => Promise<{ firmware: string; }>

Gets RFID UHF reader firmware.

Returns: Promise<{ firmware: string; }>

Since: 1.0.0


startBarcodeInventory(...)

startBarcodeInventory(options: { value: string; }) => Promise<{ barcodeData: string; }>

Starts Barcode inventory. Param: options: { value: 'zebra' }

Param Type
options { value: string; }

Returns: Promise<{ barcodeData: string; }>

Since: 1.1.0


stopBarcodeInventory()

stopBarcodeInventory() => Promise<boolean>

Stops Barcode inventory.

Returns: Promise<boolean>

Since: 1.1.0


setBarcodeTimeout(...)

setBarcodeTimeout(options: { timeout: number; }) => Promise<void>

Set Barcode timeout. Value:1000,2000,3000,4000,5000(default),6000,7000,8000,9000,10000 Param: options: { timeout: number }

Param Type
options { timeout: number; }

Since: 1.1.0


startInventory(...)

startInventory(options: { value: string; }) => Promise<{ uhfData: string[]; }>

Starts RFID UHF inventory. Param: options: { value: string }

Param Type
options { value: string; }

Returns: Promise<{ uhfData: string[]; }>

Since: 1.0.0


stopInventory()

stopInventory() => Promise<boolean>

Stops RFID UHF inventory.

Returns: Promise<boolean>

Since: 1.0.0


setOutputPower(...)

setOutputPower(options: { value: number; }) => Promise<void>

Sets RFID UHF output power.

Param Type
options { value: number; }

Since: 1.0.0


getOutputPower()

getOutputPower() => Promise<number>

Sets RFID UHF output power.

Returns: Promise<number>

Since: 1.0.0


writeEPCToTagByEPC(...)

writeEPCToTagByEPC(options: { filteredTagEPC: string; newEPC: string; }) => Promise<boolean>

Write EPC to Tag by selected EPC.

Param Type
options { filteredTagEPC: string; newEPC: string; }

Returns: Promise<boolean>

Since: 1.0.0


addListener('scanButtonPressed' | 'barcodeReceived', ...)

addListener(eventName: 'scanButtonPressed' | 'barcodeReceived', listenerFunc: ScanButtonPressedListener) => Promise<PluginListenerHandle> & PluginListenerHandle

Listen for scanButtonPressed

Param Type
eventName 'scanButtonPressed' | 'barcodeReceived'
listenerFunc ScanButtonPressedListener

Returns: Promise<PluginListenerHandle> & PluginListenerHandle

Since: 1.0.0


Interfaces

PluginListenerHandle

Prop Type
remove () => Promise<void>

Type Aliases

ScanButtonPressedListener

(keyCode: { value: string; }): void