-
- All Implemented Interfaces:
-
com.polidea.rxandroidble2.scan.ScanRecord
public class ScanRecordImplNativeWrapper implements ScanRecord
-
-
Constructor Summary
Constructors Constructor Description ScanRecordImplNativeWrapper(ScanRecord nativeScanRecord, ScanRecordParser scanRecordParser)
-
Method Summary
Modifier and Type Method Description intgetAdvertiseFlags()Returns the advertising flags indicating the discoverable mode and capability of the device.Returns -1 if the flag field is not set. List<ParcelUuid>getServiceUuids()Returns a list of service UUIDs within the advertisement that are used to identify thebluetooth GATT services. 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. SparseArray<Array<byte>>getManufacturerSpecificData()Returns a sparse array of manufacturer identifier and its corresponding manufacturer specificdata. Array<byte>getManufacturerSpecificData(int manufacturerId)Returns the manufacturer specific data associated with the manufacturer id. Map<ParcelUuid, Array<byte>>getServiceData()Returns a map of service UUID and its corresponding service data. Array<byte>getServiceData(ParcelUuid serviceDataUuid)Returns the service data byte array associated with the {@code serviceUuid}.intgetTxPowerLevel()Returns the transmission power level of the packet in dBm. StringgetDeviceName()Returns the local name of the BLE device. Array<byte>getBytes()Returns raw bytes of scan record. -
-
Constructor Detail
-
ScanRecordImplNativeWrapper
ScanRecordImplNativeWrapper(ScanRecord nativeScanRecord, ScanRecordParser scanRecordParser)
-
-
Method Detail
-
getAdvertiseFlags
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
List<ParcelUuid> getServiceUuids()
Returns a list of service UUIDs within the advertisement that are used to identify thebluetooth GATT services.
-
getServiceSolicitationUuids
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
SparseArray<Array<byte>> getManufacturerSpecificData()
Returns a sparse array of manufacturer identifier and its corresponding manufacturer specificdata.
-
getManufacturerSpecificData
@Nullable() 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
Map<ParcelUuid, Array<byte>> getServiceData()
Returns a map of service UUID and its corresponding service data.
-
getServiceData
@Nullable() 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
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() String getDeviceName()
Returns the local name of the BLE device. The is a UTF-8 encoded string.
-
-
-
-