java.lang.Object | |
↳ | android.bluetooth.le.ScanSettings.Builder |
Builder for ScanSettings
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Build
ScanSettings .
| |||||||||||
Set callback type for Bluetooth LE scan.
| |||||||||||
Set match mode for Bluetooth LE scan filters hardware match
| |||||||||||
Set the number of matches for Bluetooth LE scan filters hardware match
| |||||||||||
Set report delay timestamp for Bluetooth LE scan.
| |||||||||||
Set scan mode for Bluetooth LE scan.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Set callback type for Bluetooth LE scan.
callbackType | The callback type flags for the scan. |
---|
IllegalArgumentException | If the callbackType is invalid.
|
---|
Set match mode for Bluetooth LE scan filters hardware match
matchMode | The match mode can be one of
MATCH_MODE_AGGRESSIVE or
MATCH_MODE_STICKY |
---|
IllegalArgumentException | If the matchMode is invalid.
|
---|
Set the number of matches for Bluetooth LE scan filters hardware match
numOfMatches | The num of matches can be one of
MATCH_NUM_ONE_ADVERTISEMENT or
MATCH_NUM_FEW_ADVERTISEMENT or
MATCH_NUM_MAX_ADVERTISEMENT |
---|
IllegalArgumentException | If the matchMode is invalid.
|
---|
Set report delay timestamp for Bluetooth LE scan.
reportDelayMillis | Delay of report in milliseconds. Set to 0 to be notified of results immediately. Values > 0 causes the scan results to be queued up and delivered after the requested delay or when the internal buffers fill up. |
---|
IllegalArgumentException | If reportDelayMillis < 0.
|
---|
Set scan mode for Bluetooth LE scan.
scanMode | The scan mode can be one of SCAN_MODE_LOW_POWER ,
SCAN_MODE_BALANCED or
SCAN_MODE_LOW_LATENCY . |
---|
IllegalArgumentException | If the scanMode is invalid.
|
---|