public final class IBeaconAdvertisingDataController
extends java.lang.Object
ForceScanConfiguration
.Modifier and Type | Field and Description |
---|---|
static int |
TYPE_MANUFACTURER_SPECIFIC_DATA
Specifies byte value of the type of manufacturer-specific data.
|
static int |
TYPE_SERVICE_DATA
Specifies byte value of the type of service data.
|
Constructor and Description |
---|
IBeaconAdvertisingDataController(IBeaconScanContext scanContext)
AdvertisingDataController handles advertising data
(
BluetoothAdapter.LeScanCallback ). |
Modifier and Type | Method and Description |
---|---|
boolean |
filter(IBeaconAdvertisingPacket advertisingPacket)
Filters Advertising Package with specfied
IBeaconFilter s. |
IBeaconAdvertisingPacket |
getOrCreateAdvertisingPackage(android.bluetooth.BluetoothDevice device,
int rssi,
android.util.SparseArray<byte[]> advertisingData)
Creates or retrieves cached advertising package.
|
static android.util.SparseArray<byte[]> |
parseScanRecord(byte[] scanRecord)
Parses scan record sent by kontakt.io IBeacon device.
|
public static final int TYPE_MANUFACTURER_SPECIFIC_DATA
public static final int TYPE_SERVICE_DATA
public IBeaconAdvertisingDataController(IBeaconScanContext scanContext)
BluetoothAdapter.LeScanCallback
).scanContext
- the IBeacon Scan Contextpublic IBeaconAdvertisingPacket getOrCreateAdvertisingPackage(android.bluetooth.BluetoothDevice device, int rssi, android.util.SparseArray<byte[]> advertisingData)
device
- the devicerssi
- the rssiadvertisingData
- parsed advertising datapublic static android.util.SparseArray<byte[]> parseScanRecord(byte[] scanRecord)
scanRecord
- the scan recordpublic boolean filter(IBeaconAdvertisingPacket advertisingPacket)
IBeaconFilter
s.advertisingPacket
- the advertising package