onScanFailed abstract method

void onScanFailed(
  1. int errorCode
)

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);