java.lang.Object | |
↳ | android.bluetooth.le.ScanRecord |
Represents a scan record from Bluetooth LE scan.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the advertising flags indicating the discoverable mode and capability of the device.
| |||||||||||
Returns raw bytes of scan record.
| |||||||||||
Returns the local name of the BLE device.
| |||||||||||
Returns a sparse array of manufacturer identifier and its corresponding manufacturer specific
data.
| |||||||||||
Returns the manufacturer specific data associated with the manufacturer id.
| |||||||||||
Returns the service data byte array associated with the
serviceUuid .
| |||||||||||
Returns a map of service UUID and its corresponding service data.
| |||||||||||
Returns a list of service UUIDs within the advertisement that are used to identify the
bluetooth GATT services.
| |||||||||||
Returns the transmission power level of the packet in dBm.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Returns the advertising flags indicating the discoverable mode and capability of the device. Returns -1 if the flag field is not set.
Returns the local name of the BLE device. The is a UTF-8 encoded string.
Returns a sparse array of manufacturer identifier and its corresponding manufacturer specific data.
Returns the manufacturer specific data associated with the manufacturer id. Returns
null
if the manufacturerId
is not found.
Returns the service data byte array associated with the serviceUuid
. Returns
null
if the serviceDataUuid
is not found.
Returns a map of service UUID and its corresponding service data.
Returns a list of service UUIDs within the advertisement that are used to identify the bluetooth GATT services.
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 received
packet using the following equation:
pathloss = txPowerLevel - rssi
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.