Package-level declarations

Types

Link copied to clipboard
sealed interface BleAdvertisingEvent

Event class which maps AdvertisingSetCallback methods into data classes. On Android before O some of those values are emulated.

Link copied to clipboard

An advertise process status.

Link copied to clipboard
data class OnAdvertisingDataSet(val advertisingSet: AdvertisingSet, val status: BleAdvertisingStatus) : BleAdvertisingEvent

Event emitted in response to AdvertisingSet.setAdvertisingData indicating result of the operation. If status is BleAdvertisingStatus.ADVERTISE_SUCCESS, then data was changed.

Link copied to clipboard
data class OnAdvertisingEnabled(val advertisingSet: AdvertisingSet, val enable: Boolean, val status: BleAdvertisingStatus) : BleAdvertisingEvent

Event emitted in response to BluetoothLeAdvertiser.startAdvertisingSet indicating result of the operation. If status is BleAdvertisingStatus.ADVERTISE_SUCCESS, then advertising set is advertising.

Link copied to clipboard
data class OnAdvertisingParametersUpdated(val advertisingSet: AdvertisingSet, val txPower: Int, val status: BleAdvertisingStatus) : BleAdvertisingEvent

Event emitted in response to AdvertisingSet.setAdvertisingParameters indicating result of the operation.

Link copied to clipboard
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.

Link copied to clipboard

Event emitted in response to BluetoothLeAdvertiser.stopAdvertisingSet indicating advertising set is stopped.

Link copied to clipboard

Event emitted in response to AdvertisingSet.setPeriodicAdvertisingData indicating result of the operation.

Link copied to clipboard
data class OnPeriodicAdvertisingEnabled(val advertisingSet: AdvertisingSet, val enable: Boolean, val status: BleAdvertisingStatus) : BleAdvertisingEvent

Event emitted in response to AdvertisingSet.setPeriodicAdvertisingEnabled indicating result of the operation.

Link copied to clipboard

Event emitted in response to AdvertisingSet.setPeriodicAdvertisingParameters indicating result of the operation.

Link copied to clipboard
data class OnScanResponseDataSet(val advertisingSet: AdvertisingSet, val status: BleAdvertisingStatus) : BleAdvertisingEvent

Event emitted in response to AdvertisingSet.setAdvertisingData indicating result of the operation.