diff options
| author | Vinay Kalia <vinaykalia@google.com> | 2017-09-06 00:34:20 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2017-09-06 00:34:20 +0000 |
| commit | e4eddfd68211984b30460ccafd781996b5d1a4eb (patch) | |
| tree | 601839a7f1f2b883668103f7d3581e8053a151fb /core/java | |
| parent | b36f98cec539c2980d3bf426895f489a5a13cffd (diff) | |
| parent | 2ace7d5b637fb727d08f0aa83299e6435088002a (diff) | |
Merge "Update documentation for startScan" am: 7d2219d170 am: 04d061e891
am: 2ace7d5b63
Change-Id: Ia7349df7a8e06b3d91bcff2b18b50fdbe1eef66a
Diffstat (limited to 'core/java')
| -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 |
