public final class ScanResult
extends java.lang.Object
implements android.os.Parcelable
| Modifier and Type | Field and Description | 
|---|---|
| static android.os.Parcelable.Creator<ScanResult> | CREATOR | 
| Constructor and Description | 
|---|
| ScanResult(android.bluetooth.BluetoothDevice device,
          ScanRecord scanRecord,
          int rssi,
          long timestampNanos)Constructor of scan result. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | describeContents() | 
| boolean | equals(java.lang.Object obj) | 
| android.bluetooth.BluetoothDevice | getDevice()Returns the remote bluetooth device identified by the bluetooth device address. | 
| int | getRssi()Returns the received signal strength in dBm. | 
| ScanRecord | getScanRecord()Returns the scan record, which is a combination of advertisement and scan response. | 
| long | getTimestampNanos()Returns timestamp since boot when the scan record was observed. | 
| int | hashCode() | 
| java.lang.String | toString() | 
| void | writeToParcel(android.os.Parcel dest,
             int flags) | 
public static final android.os.Parcelable.Creator<ScanResult> CREATOR
public ScanResult(android.bluetooth.BluetoothDevice device,
          ScanRecord scanRecord,
          int rssi,
          long timestampNanos)
device - Remote bluetooth device that is found.scanRecord - Scan record including both advertising data and scan response data.rssi - Received signal strength.timestampNanos - Device timestamp when the scan result was observed.public void writeToParcel(android.os.Parcel dest,
                 int flags)
writeToParcel in interface android.os.Parcelablepublic int describeContents()
describeContents in interface android.os.Parcelablepublic android.bluetooth.BluetoothDevice getDevice()
public ScanRecord getScanRecord()
public int getRssi()
public long getTimestampNanos()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object