Package 

Interface ScanRecord

    • Method Summary

      Modifier and Type Method Description
      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.
      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 int getTxPowerLevel() Returns the transmission power level of the packet in dBm.
      abstract String getDeviceName() Returns the local name of the BLE device.
      abstract Array<byte> getBytes() Returns raw bytes of scan record.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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

        @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

        @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

      • getBytes

         abstract Array<byte> getBytes()

        Returns raw bytes of scan record.