# onScanFailed

open fun onScanFailed(sender: IDeviceScanner, errorCode: Int)

Called when an IDeviceScanner has encountered an error (optional)

#### Parameters

sender

Scanner instance that invoked this call.

errorCode

Status code, one of ScanCallback.SCAN_FAILED_ALREADY_STARTED, ScanCallback.SCAN_FAILED_APPLICATION_REGISTRATION_FAILED, ScanCallback.SCAN_FAILED_FEATURE_UNSUPPORTED, ScanCallback.SCAN_FAILED_INTERNAL_ERROR.