CodiscanSDK
Summary
The CODiScan™ HS7600 SDK empowers users to write Android applications that interface with a connected CODiScan™ HS7600 wearable Bluetooth bar code reader.
Functions
Function | Description |
---|---|
bindService | Binds a given Context to the CODiScan service. |
unbindService | Unbind the CODiScan service from the given Context. |
Management Classes
Classes | Description |
---|---|
DeviceManager | Management class for the CODiScan device. Used to pair with a CODiScan device, request CODiScan device data, and trigger the findMe function. |
ConfigurationManager | Management class to set/get configuration values of a connected CODiScan device. |
Functions
bindService
fun bindService(ctx: Context, callback: () -> Unit = {})
Binds a given Context to the CODiScan service.
Parameters
- ctx - the given Context to which the CODiScan service is to be bound to.
- callback - called when the CODiScan service is connected and bound to the given Context.
Example
codiscanSDK.bindService(this){
codiscanSDK.deviceManager.registerPairingCodeListener(this)
}
unbindService
fun unbindService(ctx: Context)
Unbind the CODiScan service from the given Context.
Parameters
- ctx - the given Context to which the CODiScan service is to be unbound from.
Example
codiscanSDK.unbindService(this)