onScanFailed abstract method
Called when the device scan has failed.
This method is invoked when an error occurs during the scan process.
The errorCode
parameter indicates the specific error that occurred.
You can handle the error condition based on the provided error code.
errorCode
: The error code indicating the reason for the scan failure.
Implementation
void onScanFailed(int errorCode);