diff options
| author | 2017-06-22 01:20:36 +0000 | |
|---|---|---|
| committer | 2017-06-22 01:20:36 +0000 | |
| commit | 5d45ac6e68d87c59aeb18bda2922cb2db1a61ab8 (patch) | |
| tree | fa3515ae357c6899556bb0edd600d3cd98dd9df5 | |
| parent | 187fe9d5cf3caab5a6f25e6802dee637f00187a9 (diff) | |
| parent | 78f3a0f722da7c1942e8f58e1673261bf640de60 (diff) | |
Merge "Clarify startScan API on how to get results" into oc-dev
am: 78f3a0f722
Change-Id: Ib58abc3ef4eb3c525af9ec2bb6f66e794b659030
| -rw-r--r-- | core/java/android/bluetooth/le/BluetoothLeScanner.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/bluetooth/le/BluetoothLeScanner.java b/core/java/android/bluetooth/le/BluetoothLeScanner.java index f3f0ae5cd959..1eac395bd06c 100644 --- a/core/java/android/bluetooth/le/BluetoothLeScanner.java +++ b/core/java/android/bluetooth/le/BluetoothLeScanner.java @@ -136,6 +136,11 @@ public final class BluetoothLeScanner { * Start Bluetooth LE scan using a {@link PendingIntent}. The scan results will be delivered via * the PendingIntent. Use this method of scanning if your process is not always running and it * should be started when scan results are available. + * <p> + * When the PendingIntent is delivered, the Intent passed to the receiver or activity + * will contain one or more of the extras {@link #EXTRA_CALLBACK_TYPE}, + * {@link #EXTRA_ERROR_CODE} and {@link #EXTRA_LIST_SCAN_RESULT} to indicate the result of + * the scan. * * @param filters Optional list of ScanFilters for finding exact BLE devices. * @param settings Optional settings for the scan. |