Package-level declarations

Types

Link copied to clipboard
data class BleAdvertisingConfig(val settings: BleAdvertisingSettings = BleAdvertisingSettings(), val advertiseData: BleAdvertisingData? = null, val scanResponseData: BleAdvertisingData? = null)

A class for BLE advertisement configuration.

Link copied to clipboard
data class BleAdvertisingData(val serviceUuid: ParcelUuid? = null, val includeDeviceName: Boolean? = null, val includeTxPowerLever: Boolean? = null, val manufacturerData: List<ManufacturerData> = emptyList(), val serviceData: List<ServiceData> = emptyList(), val serviceSolicitationUuid: ParcelUuid? = null)

Advertise data packet container for Bluetooth LE advertising. This represents the data to be advertised as well as the scan response data for active scans.

Link copied to clipboard

Advertising interval which is tightly correlated with power consumption. A helper class which is a wrapper around Native Android API. It unifies parameters between different Android versions.

Link copied to clipboard
data class BleAdvertisingSettings(val txPowerLevel: BleTxPowerLevel? = null, val includeTxPower: Boolean? = null, val interval: BleAdvertisingInterval? = null, val connectable: Boolean = true, val timeout: Int = 0, val deviceName: String? = null, val anonymous: Boolean? = null, val legacyMode: Boolean = false, val primaryPhy: BleGattPrimaryPhy? = null, val secondaryPhy: BleGattPhy? = null, val scannable: Boolean? = false)

The class provide a way to adjust advertising preferences for each Bluetooth LE advertisement instance.

Link copied to clipboard

Tx (transmitting) power level. A helper class which is a wrapper around Native Android API. It unifies parameters between different Android versions.

Link copied to clipboard
data class ManufacturerData(val id: Int, val data: DataByteArray)

A helper class which groups manufacturer id and it's data.

Link copied to clipboard
data class ServiceData(val uuid: ParcelUuid, val data: DataByteArray, val mask: DataByteArray? = null)

A helper class which groups service id and it's data.