diff options
| author | 2017-09-06 00:08:24 +0000 | |
|---|---|---|
| committer | 2017-09-06 00:08:24 +0000 | |
| commit | 04d061e8917f76a3724f6b6d5e2bce17e5cea5d6 (patch) | |
| tree | 5f1b45238f763ccd52281463dadb3c79cdfd8d85 | |
| parent | 56d8c8297d24e6d2bf5c54462fe0cf40861a76ad (diff) | |
| parent | 7d2219d17074be8ca898059904f0b6a461c25b5a (diff) | |
Merge "Update documentation for startScan"
am: 7d2219d170
Change-Id: I5ea7a5a9b0a69168a1715986e4850276299af78a
| -rw-r--r-- | core/java/android/bluetooth/le/BluetoothLeScanner.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/java/android/bluetooth/le/BluetoothLeScanner.java b/core/java/android/bluetooth/le/BluetoothLeScanner.java index c8ed7ef719d9..7fc79d79a641 100644 --- a/core/java/android/bluetooth/le/BluetoothLeScanner.java +++ b/core/java/android/bluetooth/le/BluetoothLeScanner.java @@ -99,7 +99,9 @@ public final class BluetoothLeScanner { /** * Start Bluetooth LE scan with default parameters and no filters. The scan results will be - * delivered through {@code callback}. + * delivered through {@code callback}. For unfiltered scans, scanning is stopped on screen + * off to save power. Scanning is resumed when screen is turned on again. To avoid this, use + * {@link #startScan(List, ScanSettings, ScanCallback)} with desired {@link ScanFilter}. * <p> * An app must hold * {@link android.Manifest.permission#ACCESS_COARSE_LOCATION ACCESS_COARSE_LOCATION} or @@ -116,6 +118,9 @@ public final class BluetoothLeScanner { /** * Start Bluetooth LE scan. The scan results will be delivered through {@code callback}. + * For unfiltered scans, scanning is stopped on screen off to save power. Scanning is + * resumed when screen is turned on again. To avoid this, do filetered scanning by + * using proper {@link ScanFilter}. * <p> * An app must hold * {@link android.Manifest.permission#ACCESS_COARSE_LOCATION ACCESS_COARSE_LOCATION} or |