Sequenceablepublic final class BleScanResult extends Object implements Sequenceable
Sequenceable.Producer<T>| 构造器 | 说明 |
|---|---|
BleScanResult(BlePeripheralDevice device,
Map<Integer,byte[]> manufacturerDatas,
Map<UUID,byte[]> serviceDatas,
List<UUID> uuids,
int advertiseFlag,
long time) |
A parameterized constructor used to create a
BleScanResult instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
getAdvertiseFlag() |
Returns the advertising flag.
|
Map<Integer,byte[]> |
getManufacturerData() |
Obtains the manufacturer data in a device scan.
|
BlePeripheralDevice |
getPeripheralDevice() |
Obtains a peripheral device.
|
byte[] |
getRawData() |
Obtains the advertisement found in a BLE scan.
|
int |
getRssi() |
Obtains the scanning RSSI.
|
Map<UUID,byte[]> |
getServiceData() |
Obtains the service data in a device scan.
|
List<UUID> |
getServiceUuids() |
Obtains the list of supported UUIDs.
|
long |
getTime() |
Obtains the timestamp since the BLE scan result was reported, in nanoseconds.
|
boolean |
isConnectable() |
Checks whether this device is connectable.
|
boolean |
marshalling(Parcel out) |
Marshals this
Sequenceable object into a Parcel. |
boolean |
unmarshalling(Parcel in) |
Unmarshals this
Sequenceable object from a Parcel. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasFileDescriptorpublic BleScanResult(BlePeripheralDevice device, Map<Integer,byte[]> manufacturerDatas, Map<UUID,byte[]> serviceDatas, List<UUID> uuids, int advertiseFlag, long time)
BleScanResult instance.device - Indicates the scanned device.manufacturerDatas - Indicates the manufacturer data of the scanned device.serviceDatas - Indicates the service data of the scanned device.uuids - Indicates the UUID of the scanned device.public BlePeripheralDevice getPeripheralDevice()
public int getRssi()
public boolean isConnectable()
true if this device is connectable; returns false otherwise.public Map<Integer,byte[]> getManufacturerData()
public Map<UUID,byte[]> getServiceData()
public List<UUID> getServiceUuids()
public int getAdvertiseFlag()
public long getTime()
public byte[] getRawData()
public boolean marshalling(Parcel out)
SequenceableSequenceable object into a Parcel.marshalling 在接口中 Sequenceableout - Indicates the Parcel object to which the Sequenceable
object will be marshaled..true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
SequenceableSequenceable object from a Parcel.unmarshalling 在接口中 Sequenceablein - Indicates the Parcel object into which the Sequenceable
object has been marshaled.true if the unmarshalling is successful; returns false otherwise.