OnAdvertisingSetStarted

data class OnAdvertisingSetStarted(val advertisingSet: AdvertisingSet?, val txPower: Int, val status: BleAdvertisingStatus) : BleAdvertisingEvent

Event emitted in response to BluetoothLeAdvertiser.startAdvertisingSet indicating result of the operation. If status is BleAdvertisingStatus.ADVERTISE_SUCCESS, then advertisingSet contains the started set and it is advertising. If error occurred, advertisingSet is null, and status will be set to proper error code.

See also

(https://developer.android.com/reference/android/bluetooth/le/AdvertisingSetCallback#onAdvertisingSetStarted(android.bluetooth.le.AdvertisingSet,%20int,%20int))

Constructors

Link copied to clipboard
constructor(advertisingSet: AdvertisingSet?, txPower: Int, status: BleAdvertisingStatus)

Properties

Link copied to clipboard

The advertising set. Null on Android < Oreo.

Link copied to clipboard

Status of the operation.

Link copied to clipboard

Transmitter power that will be used for this set.