Package-level declarations

Types

Link copied to clipboard

This domain allows configuring virtual Bluetooth devices to test the web-bluetooth API.

Link copied to clipboard
@Serializable
enum CentralState : Enum<CentralState>

Indicates the various states of Central.

Link copied to clipboard
@Serializable
object DisableResponse

A dummy response object for the BluetoothEmulationDomain.disable command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class EnableRequest(val state: CentralState)

Request object containing input parameters for the BluetoothEmulationDomain.enable command.

Link copied to clipboard
@Serializable
object EnableResponse

A dummy response object for the BluetoothEmulationDomain.enable command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class ManufacturerData(val key: Int, val data: String)

Stores the manufacturer data

Link copied to clipboard
@Serializable
data class ScanEntry(val deviceAddress: String, val rssi: Int, val scanRecord: ScanRecord)

Stores the advertisement packet information that is sent by a Bluetooth device.

Link copied to clipboard
@Serializable
data class ScanRecord(val name: String? = null, val uuids: List<String>? = null, val appearance: Int? = null, val txPower: Int? = null, val manufacturerData: List<ManufacturerData>? = null)

Stores the byte data of the advertisement packet sent by a Bluetooth device.

Link copied to clipboard
@Serializable
data class SimulateAdvertisementRequest(val entry: ScanEntry)

Request object containing input parameters for the BluetoothEmulationDomain.simulateAdvertisement command.

Link copied to clipboard
@Serializable
object SimulateAdvertisementResponse

A dummy response object for the BluetoothEmulationDomain.simulateAdvertisement command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SimulatePreconnectedPeripheralRequest(val address: String, val name: String, val manufacturerData: List<ManufacturerData>, val knownServiceUuids: List<String>)

Request object containing input parameters for the BluetoothEmulationDomain.simulatePreconnectedPeripheral command.

Link copied to clipboard

A dummy response object for the BluetoothEmulationDomain.simulatePreconnectedPeripheral command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.