MockScanner
A type for a mock scanner.
This callback is called when the mock central manager requests a scan for Bluetooth LE devices.
Return Result.success with true
to indicate that the scan was successful and that results will be reported, or false
to start the scan but not report any results. This is useful, as some devices don't report scan error in any way, but just don't report any results.
Result.failure with ScanningFailedToStartException
exception will be thrown from the scan
method of a CentralManager
as if ScanCallback.onScanFailed(errorCode)
was called.