diff options
author | Wei Wang <weiwa@google.com> | 2014-07-16 22:02:03 -0700 |
---|---|---|
committer | Wei Wang <weiwa@google.com> | 2014-07-18 18:31:00 -0700 |
commit | 0afb91d1a96bb0068f9b32ec9a99f8391feb5537 (patch) | |
tree | 8b28a67077d0d46b2e850a9cd6d947e20e7ecc03 /framework/java/android/bluetooth/le/ScanCallback.java | |
parent | 23bde57df4ffc46f8d518f775c2367bda84c78e3 (diff) |
More API modification of BLE APIs (1/2).
Changed include:
1) Add serviceDataUuid to filter so it matches sanRecord and
AdvertiseData.
2) Add raw bytes to ScanRecord and make ScanResult take a ScanRecord
instead of raw bytes.
3) Change from setServiceUuid(List) to addServiceUuid(ParcelUuid).
4) Added include device name
5) Removed service not registered and added ADVERTISE_DATA_TOO_LARGE.
6) Fixed a few comments.
Change-Id: Ibbe07183b1293835c4a84728d1cd2d61e5d627d3
Diffstat (limited to 'framework/java/android/bluetooth/le/ScanCallback.java')
-rw-r--r-- | framework/java/android/bluetooth/le/ScanCallback.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/framework/java/android/bluetooth/le/ScanCallback.java b/framework/java/android/bluetooth/le/ScanCallback.java index b4c1e1769c..5b373845a7 100644 --- a/framework/java/android/bluetooth/le/ScanCallback.java +++ b/framework/java/android/bluetooth/le/ScanCallback.java @@ -19,10 +19,9 @@ package android.bluetooth.le; import java.util.List; /** - * Bluetooth LE scan callbacks. - * Scan results are reported using these callbacks. + * Bluetooth LE scan callbacks. Scan results are reported using these callbacks. * - * {@see BluetoothLeScanner#startScan} + * @see BluetoothLeScanner#startScan */ public abstract class ScanCallback { /** @@ -48,8 +47,8 @@ public abstract class ScanCallback { /** * Callback when a BLE advertisement has been found. * - * @param callbackType Determines if this callback was triggered because of first match, - * a lost match indication or a regular scan result. + * @param callbackType Determines if this callback was triggered because of first match, a lost + * match indication or a regular scan result. * @param result A Bluetooth LE scan result. */ public void onScanResult(int callbackType, ScanResult result) { @@ -65,6 +64,7 @@ public abstract class ScanCallback { /** * Callback when scan could not be started. + * @param errorCode Error code (one of SCAN_FAILED_*) for scan failure. */ public void onScanFailed(int errorCode) { } |