Package com.tapkey.mobile.ble
Class ScanFilter
- java.lang.Object
-
- com.tapkey.mobile.ble.ScanFilter
-
public class ScanFilter extends Object
Data to be used to filter Bluetooth LE Advertising data before forwarding the results to the application layer.
-
-
Constructor Summary
Constructors Constructor Description ScanFilter(String serviceUuid, String serviceDataServiceUuid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getServiceDataServiceUuid()
The service UUID to filter for in the service data advertising data type.String
getServiceUuid()
The service UUID to filter for.
-
-
-
Method Detail
-
getServiceUuid
public String getServiceUuid()
The service UUID to filter for. If set, then those advertising frames should be returned, having the specified UUID in their complete or incomplete list of service UUID classes (GAP Advertising data types 0x02, 0x03, 0x06, 0x07). On Android the value corresponds to getServiceUuid(). The uuid is returned either in form of a 128-bit uuid or a 16-bit UUID. In case of a 16-bit UUID it is formatted as a 4-character HEX string in little endian encoding (e.g. the ID 0xfd5e would be returned as `5EFD`.- Returns:
- The service UUID to filter for.
-
getServiceDataServiceUuid
public String getServiceDataServiceUuid()
The service UUID to filter for in the service data advertising data type. If set, then those advertising frames should be returned, having a service data record for the specified UUID (GAP Advertising data types 0x16). On Android the value corresponds to getServiceData(). The uuid is returned either in form of a 128-bit uuid or a 16-bit UUID. In case of a 16-bit UUID it is formatted as a 4-character HEX string in little endian encoding (e.g. the ID 0xfd5e would be returned as `5EFD`.- Returns:
- The service UUID to filter for.
-
-