WebDevicePickerSettings

data class WebDevicePickerSettings(val title: String = "Bluetooth Devices", val addButtonLabel: String = "Add Device", val emptyLabel: String = "No devices added yet", val cssClassPrefix: String = "kaluga-bluetooth", val containerId: String? = null)

Configures the on-screen "Add Device" overlay rendered by the Web Bluetooth DefaultScanner.

Every element gets a class derived from cssClassPrefix (e.g. <prefix>-overlay, <prefix>-button, <prefix>-list, <prefix>-list-item), so the host page can fully restyle the overlay through CSS.

Constructors

Link copied to clipboard
constructor(title: String = "Bluetooth Devices", addButtonLabel: String = "Add Device", emptyLabel: String = "No devices added yet", cssClassPrefix: String = "kaluga-bluetooth", containerId: String? = null)

Properties

Link copied to clipboard

the label of the button that opens the system device picker

Link copied to clipboard

the id of the element to mount the overlay in, or null for document.body

Link copied to clipboard

the prefix applied to every overlay element's CSS class

Link copied to clipboard

the text shown in the device list while no device has been added yet

Link copied to clipboard

the heading shown at the top of the overlay