BleAdvertiser

interface BleAdvertiser

Advertiser class which provides BLE advertising functionality. It is wrapper around native Android API.

See also

BluetoothLeAdvertiser

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

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
@RequiresPermission(allOf = ["android.permission.BLUETOOTH_ADVERTISE"])
abstract fun advertise(config: BleAdvertisingConfig): Flow<BleAdvertisingEvent>

Starts BLE advertising.

Starts BLE advertising locally on a device. The devices should be returned by NordicScanner during scanning.