Removed no longer existing getBatchScanResults and replaced
it with flushPendingScanResults.
Change-Id: I3263765bd24103a16ce6c9487ee380dd18540248
diff --git a/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothLeScanFacade.java b/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothLeScanFacade.java
index be44ee5..69014ed 100644
--- a/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothLeScanFacade.java
+++ b/Common/src/com/googlecode/android_scripting/facade/bluetooth/BluetoothLeScanFacade.java
@@ -257,21 +257,20 @@
}
/**
- * Get a ble batch Scan results
+ * Trigger onBatchScanResults
*
* @param flush the results
* @throws Exception
*/
@Rpc(description = "Gets the results of the ble ScanCallback")
- public List<ScanResult> getBatchScanResults(
+ public void flushPendingScanResults(
@RpcParameter(name = "callbackIndex")
- Integer callbackIndex,
- @RpcParameter(name = "flush")
- Boolean flush) throws Exception {
+ Integer callbackIndex
+ ) throws Exception {
if (mScanCallbackList.get(callbackIndex) != null) {
- return mBluetoothAdapter
- .getBluetoothLeScanner().getBatchScanResults(
- mScanCallbackList.get(callbackIndex), flush);
+ mBluetoothAdapter
+ .getBluetoothLeScanner().flushPendingScanResults(
+ mScanCallbackList.get(callbackIndex));
} else {
throw new Exception("Invalid callbackIndex input:"
+ Integer.toString(callbackIndex));