public final class ScanSettings
extends java.lang.Object
implements android.os.Parcelable
BluetoothLeScannerCompat.startScan(com.reelyactive.blesdk.support.ble.ScanCallback)
to define the parameters for the scan.Modifier and Type | Class and Description |
---|---|
static class |
ScanSettings.Builder
Builder for
ScanSettings . |
Modifier and Type | Field and Description |
---|---|
static int |
CALLBACK_TYPE_ALL_MATCHES
Trigger a callback for every Bluetooth advertisement found that matches the filter criteria.
|
static int |
CALLBACK_TYPE_FIRST_MATCH
A result callback is only triggered for the first advertisement packet received that matches
the filter criteria.
|
static int |
CALLBACK_TYPE_MATCH_LOST
Receive a callback when advertisements are no longer received from a device that has been
previously reported by a first match callback.
|
static android.os.Parcelable.Creator<ScanSettings> |
CREATOR |
static int |
SCAN_MODE_BALANCED
Perform Bluetooth LE scan in balanced power mode.
|
static int |
SCAN_MODE_LOW_LATENCY
Scan using highest duty cycle.
|
static int |
SCAN_MODE_LOW_POWER
Perform Bluetooth LE scan in low power mode.
|
static int |
SCAN_RESULT_TYPE_ABBREVIATED
Request abbreviated scan results which contain the device, rssi and scan timestamp.
|
static int |
SCAN_RESULT_TYPE_FULL
Request full scan results which contain the device, rssi, advertising data, scan response as
well as the scan timestamp.
|
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
int |
getCallbackType() |
long |
getReportDelayMillis()
Returns report delay timestamp based on the device clock.
|
int |
getScanMode() |
int |
getScanResultType() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final int SCAN_MODE_LOW_POWER
public static final int SCAN_MODE_BALANCED
public static final int SCAN_MODE_LOW_LATENCY
public static final int CALLBACK_TYPE_ALL_MATCHES
public static final int CALLBACK_TYPE_FIRST_MATCH
public static final int CALLBACK_TYPE_MATCH_LOST
public static final int SCAN_RESULT_TYPE_FULL
public static final int SCAN_RESULT_TYPE_ABBREVIATED
Note: It is possible for an application to get more scan results than it asked for, if there are multiple apps using this type.
public static final android.os.Parcelable.Creator<ScanSettings> CREATOR
public int getScanMode()
public int getCallbackType()
public int getScanResultType()
public long getReportDelayMillis()
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public int describeContents()
describeContents
in interface android.os.Parcelable