public final class NativeScanFilter
extends java.lang.Object
ScanFilter
. However, that class is not
available on devices running an OS lower than Lollipop. Using this class means you don't have to check whether the
device is running lollipop in order to use the class.
Criteria for filtering result from Bluetooth LE scans. A ScanFilter
allows clients to
restrict scan results to only those that are of interest to them.
Current filtering on the following fields are supported:
ScanResult
,
BluetoothLeScanner
Modifier and Type | Class and Description |
---|---|
static class |
NativeScanFilter.Builder
Builder class for
NativeScanFilter . |
Modifier and Type | Field and Description |
---|---|
static NativeScanFilter |
EMPTY |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static boolean |
equals(java.lang.Object a,
java.lang.Object b) |
java.lang.String |
getDeviceAddress() |
java.lang.String |
getDeviceName()
Returns the filter set the device name field of Bluetooth advertisement data.
|
byte[] |
getManufacturerData() |
byte[] |
getManufacturerDataMask() |
int |
getManufacturerId()
Returns the manufacturer id.
|
byte[] |
getServiceData() |
byte[] |
getServiceDataMask() |
android.os.ParcelUuid |
getServiceDataUuid() |
android.os.ParcelUuid |
getServiceUuid()
Returns the filter set on the service uuid.
|
android.os.ParcelUuid |
getServiceUuidMask() |
int |
hashCode() |
java.lang.String |
toString() |
public static final NativeScanFilter EMPTY
public java.lang.String getDeviceName()
public android.os.ParcelUuid getServiceUuid()
public android.os.ParcelUuid getServiceUuidMask()
public java.lang.String getDeviceAddress()
public byte[] getServiceData()
public byte[] getServiceDataMask()
public android.os.ParcelUuid getServiceDataUuid()
public int getManufacturerId()
public byte[] getManufacturerData()
public byte[] getManufacturerDataMask()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static boolean equals(java.lang.Object a, java.lang.Object b)