BleScanRecord

data class BleScanRecord(val advertiseFlag: Int, val serviceUuids: List<ParcelUuid>?, val serviceData: Map<ParcelUuid, DataByteArray>, val serviceSolicitationUuids: List<ParcelUuid>, val deviceName: String?, val txPowerLevel: Int?, val bytes: DataByteArray? = null, val manufacturerSpecificData: SparseArray<DataByteArray>) : Parcelable

Represents a scan record from Bluetooth LE scan.

See also

ScanRecord

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

Constructors

Link copied to clipboard
constructor(advertiseFlag: Int, serviceUuids: List<ParcelUuid>?, serviceData: Map<ParcelUuid, DataByteArray>, serviceSolicitationUuids: List<ParcelUuid>, deviceName: String?, txPowerLevel: Int?, bytes: DataByteArray? = null, manufacturerSpecificData: SparseArray<DataByteArray>)

Properties

Link copied to clipboard

Returns the advertising flags indicating the discoverable mode and capability of the device.

Link copied to clipboard
val bytes: DataByteArray? = null

Returns raw bytes of scan record.

Link copied to clipboard

Returns the local name of the BLE device.

Link copied to clipboard

Returns a sparse array of manufacturer identifier and its corresponding manufacturer specific data.

Link copied to clipboard

Returns a map of service UUID and its corresponding service data.

Link copied to clipboard

Returns a list of service solicitation UUIDs within the advertisement that are used to identify the Bluetooth GATT services.

Link copied to clipboard

Returns a list of service UUIDs within the advertisement that are used to identify the bluetooth GATT services.

Link copied to clipboard

Returns the transmission power level of the packet in dBm.

Functions

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