Skip to main content

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​

FunctionDescription
bindServiceBinds a given Context to the CODiScan service.
unbindServiceUnbind the CODiScan service from the given Context.

Management Classes​

ClassesDescription
DeviceManagerManagement class for the CODiScan device. Used to pair with a CODiScan device, request CODiScan device data, and trigger the findMe function.
ConfigurationManagerManagement 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)