my application scans BLE devices in background. I don't understand what determines the choice between these two methods: advantage / disadvantage. (I tested both and it works)
public int startScan (List<ScanFilter> filters,
ScanSettings settings,
PendingIntent callbackIntent)
public void startScan (List<ScanFilter> filters,
ScanSettings settings,
ScanCallback callback)`
thank you for help