BleScanResultData

data class BleScanResultData(val rssi: Int, val timestampNanos: Long, val scanRecord: BleScanRecord?, val advertisingSid: Int? = null, val primaryPhy: BleGattPrimaryPhy? = null, val secondaryPhy: BleGattPhy? = null, val txPower: Int? = null, val periodicAdvertisingInterval: Int? = null, val isLegacy: Boolean? = null, val isConnectable: Boolean? = null, val dataStatus: BleScanDataStatus? = null) : Parcelable

ScanResult for Bluetooth LE scan.

See also

ScanResult

(https://developer.android.com/reference/kotlin/android/bluetooth/le/ScanResult)

Constructors

Link copied to clipboard
constructor(rssi: Int, timestampNanos: Long, scanRecord: BleScanRecord?, advertisingSid: Int? = null, primaryPhy: BleGattPrimaryPhy? = null, secondaryPhy: BleGattPhy? = null, txPower: Int? = null, periodicAdvertisingInterval: Int? = null, isLegacy: Boolean? = null, isConnectable: Boolean? = null, dataStatus: BleScanDataStatus? = null)

Properties

Link copied to clipboard
@RequiresApi(value = 26)
val advertisingSid: Int? = null

Returns the advertising set id.

Link copied to clipboard
@RequiresApi(value = 26)
val dataStatus: BleScanDataStatus? = null

Returns the data status (BleScanDataStatus) .

Link copied to clipboard
@RequiresApi(value = 26)
val isConnectable: Boolean? = null

Returns true if this object represents connectable scan result.

Link copied to clipboard
@RequiresApi(value = 26)
val isLegacy: Boolean? = null

Returns true if this object represents legacy scan result.

Link copied to clipboard

Returns the periodic advertising interval in units of 1.

Link copied to clipboard
@RequiresApi(value = 26)
val primaryPhy: BleGattPrimaryPhy? = null

Returns the primary Physical Layer (BleGattPrimaryPhy) on which this advertisment was received.

Link copied to clipboard
val rssi: Int

Returns the received signal strength in dBm.

Link copied to clipboard

Returns the scan record (BleScanRecord), which is a combination of advertisement and scan response.

Link copied to clipboard
@RequiresApi(value = 26)
val secondaryPhy: BleGattPhy? = null

Returns the secondary Physical Layer (BleGattPhy) on which this advertisment was received.

Link copied to clipboard

Returns timestamp since boot when the scan record was observed.

Link copied to clipboard
@RequiresApi(value = 26)
val txPower: Int? = null

Returns the transmit power in dBm.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)