-
public interface ScanRecord
-
-
Method Summary
Modifier and Type Method Description abstract intgetAdvertiseFlags()Returns the advertising flags indicating the discoverable mode and capability of the device.Returns -1 if the flag field is not set. abstract List<ParcelUuid>getServiceUuids()Returns a list of service UUIDs within the advertisement that are used to identify thebluetooth GATT services. abstract List<ParcelUuid>getServiceSolicitationUuids()Returns a list of service solicitation UUIDs within the advertisement that are used to identify thebluetooth GATT services the peripheral requires on the Central. abstract SparseArray<Array<byte>>getManufacturerSpecificData()Returns a sparse array of manufacturer identifier and its corresponding manufacturer specificdata. abstract Array<byte>getManufacturerSpecificData(int manufacturerId)Returns the manufacturer specific data associated with the manufacturer id. abstract Map<ParcelUuid, Array<byte>>getServiceData()Returns a map of service UUID and its corresponding service data. abstract Array<byte>getServiceData(ParcelUuid serviceDataUuid)Returns the service data byte array associated with the {@code serviceUuid}.abstract intgetTxPowerLevel()Returns the transmission power level of the packet in dBm. abstract StringgetDeviceName()Returns the local name of the BLE device. abstract Array<byte>getBytes()Returns raw bytes of scan record. -
-
Method Detail
-
getAdvertiseFlags
abstract int getAdvertiseFlags()
Returns the advertising flags indicating the discoverable mode and capability of the device.Returns -1 if the flag field is not set.
-
getServiceUuids
abstract List<ParcelUuid> getServiceUuids()
Returns a list of service UUIDs within the advertisement that are used to identify thebluetooth GATT services.
-
getServiceSolicitationUuids
abstract List<ParcelUuid> getServiceSolicitationUuids()
Returns a list of service solicitation UUIDs within the advertisement that are used to identify thebluetooth GATT services the peripheral requires on the Central.
-
getManufacturerSpecificData
abstract SparseArray<Array<byte>> getManufacturerSpecificData()
Returns a sparse array of manufacturer identifier and its corresponding manufacturer specificdata.
-
getManufacturerSpecificData
@Nullable() abstract Array<byte> getManufacturerSpecificData(int manufacturerId)
Returns the manufacturer specific data associated with the manufacturer id. Returns
{@code null}if the{@code manufacturerId}is not found.
-
getServiceData
abstract Map<ParcelUuid, Array<byte>> getServiceData()
Returns a map of service UUID and its corresponding service data.
-
getServiceData
@Nullable() abstract Array<byte> getServiceData(ParcelUuid serviceDataUuid)
Returns the service data byte array associated with the
{@code serviceUuid}. Returns{@code null}if the{@code serviceDataUuid}is not found.
-
getTxPowerLevel
abstract int getTxPowerLevel()
Returns the transmission power level of the packet in dBm. Returns MIN_VALUE if the field is not set. This value can be used to calculate the path loss of a receivedpacket using the following equation:
pathloss = txPowerLevel - rssi
-
getDeviceName
@Nullable() abstract String getDeviceName()
Returns the local name of the BLE device. The is a UTF-8 encoded string.
-
-
-
-