SDKDeviceScanService

This object is used to scan Devices For scanning the following must be provided:

  • an SDKScannerResultListener: where results (either success scans with lists or errors) will be deferred

  • an scanTimeout: this will be the maximum time for scanning

Permission may be required, if the scanner need any permission then it will be stoped and a PermissionNotGiven error will be delivered. an error. Scanning can be stopped at any time. If not stopped manually, it will continue scanning until timeout provided is reached

Functions

Link copied to clipboard
fun scan(scanResultListener: SDKScannerResultListener, scanTimeout: Long)

Scan method to use from an Activity. Must be called in the Main thread

Link copied to clipboard

Stops any in-progress scanning