ISWLeScanCallback

interface ISWLeScanCallback

ISWLeScanCallback

Description :

An interface for notifying BluetoothProfile IPC clients when they have been connected or disconnected to the service.

*

Example of use :

  • Implementation :
    
     ISWLeScanCallback mScanCallback = new ISWLeScanCallback() {
    
    public void onScanCompleted(List<BleDevice> leDevices) {
    // code ...
    }
    
    
    public void onScanError(int error) {
    // code ...
    
    }
    }
    
  • Init this callback by calling :
    this callback well be called when you need to start scan :
    
    
    BLEManager.getInstance().scanLeDevices(mScanCallback, scanPeriod, context);
    

Functions

Link copied to clipboard
abstract fun onScanCompleted(@Nullable leDevices: List<BleDevice>)
Callback reporting an list of LE devices found during a device scan initiated by the startLeScan function.
Link copied to clipboard
abstract fun onScanError(error: Int)
the error occurred during the scan.