java.lang.Object | |
↳ | android.bluetooth.le.ScanSettings |
Bluetooth LE scan settings are passed to startScan(ScanCallback)
to define the
parameters for the scan.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ScanSettings.Builder |
Builder for ScanSettings .
|
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | CALLBACK_TYPE_ALL_MATCHES | Trigger a callback for every Bluetooth advertisement found that matches the filter criteria. | |||||||||
int | SCAN_MODE_BALANCED | Perform Bluetooth LE scan in balanced power mode. | |||||||||
int | SCAN_MODE_LOW_LATENCY | Scan using highest duty cycle. | |||||||||
int | SCAN_MODE_LOW_POWER | Perform Bluetooth LE scan in low power mode. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Returns report delay timestamp based on the device clock.
| |||||||||||
Flatten this object in to a Parcel.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Trigger a callback for every Bluetooth advertisement found that matches the filter criteria. If no filter is active, all advertisement packets are reported.
Perform Bluetooth LE scan in balanced power mode. Scan results are returned at a rate that provides a good trade-off between scan frequency and power consumption.
Scan using highest duty cycle. It's recommended to only use this mode when the application is running in the foreground.
Perform Bluetooth LE scan in low power mode. This is the default scan mode as it consumes the least power.
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Returns report delay timestamp based on the device clock.
Flatten this object in to a Parcel.
dest | The Parcel in which the object should be written. |
---|---|
flags | Additional flags about how the object should be written.
May be 0 or PARCELABLE_WRITE_RETURN_VALUE .
|