-
- All Implemented Interfaces:
-
com.polidea.rxandroidble2.internal.ScanResultInterface
public class RxBleInternalScanResult implements ScanResultInterface
-
-
Field Summary
Fields Modifier and Type Field Description private final BluetoothDevicebluetoothDeviceprivate final intrssiprivate final longtimestampNanosprivate final ScanRecordscanRecordprivate final ScanCallbackTypescanCallbackTypeprivate final IsConnectableisConnectable
-
Constructor Summary
Constructors Constructor Description RxBleInternalScanResult(BluetoothDevice bluetoothDevice, int rssi, long timestampNanos, ScanRecord scanRecord, ScanCallbackType scanCallbackType, IsConnectable isConnectable)
-
Method Summary
Modifier and Type Method Description BluetoothDevicegetBluetoothDevice()intgetRssi()Get the RSSI of the scan result longgetTimestampNanos()Get the timestamp the scan result was produced ScanRecordgetScanRecord()Get the scan record ScanCallbackTypegetScanCallbackType()Get the type of scan callback IsConnectableisConnectable()StringgetAddress()Get the address from the device StringgetDeviceName()Get the device name from the device (not from scan record) -
-
Constructor Detail
-
RxBleInternalScanResult
RxBleInternalScanResult(BluetoothDevice bluetoothDevice, int rssi, long timestampNanos, ScanRecord scanRecord, ScanCallbackType scanCallbackType, IsConnectable isConnectable)
-
-
Method Detail
-
getBluetoothDevice
BluetoothDevice getBluetoothDevice()
-
getRssi
int getRssi()
Get the RSSI of the scan result
-
getTimestampNanos
long getTimestampNanos()
Get the timestamp the scan result was produced
-
getScanRecord
ScanRecord getScanRecord()
Get the scan record
-
getScanCallbackType
ScanCallbackType getScanCallbackType()
Get the type of scan callback
-
isConnectable
IsConnectable isConnectable()
-
getAddress
String getAddress()
Get the address from the device
-
getDeviceName
String getDeviceName()
Get the device name from the device (not from scan record)
-
-
-
-