BluetoothDevice class
Experimental: This is an experimental technologyCheck the Browser compatibility table carefully before using this in production.
The BluetoothDevice interface of the Web Bluetooth API represents a Bluetooth device inside a particular script execution environment.
EventTarget
BluetoothDevice
- Implemented types
- Available extensions
- Annotations
-
- @experimental
- @JS()
- @staticInterop
Constructors
- BluetoothDevice()
-
factory
Properties
- gatt → BluetoothRemoteGATTServer?
-
Available on BluetoothDevice, provided by the PropsBluetoothDevice extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Available on BluetoothDevice, provided by the PropsBluetoothDevice extension
no setter - name → String?
-
Available on BluetoothDevice, provided by the PropsBluetoothDevice extension
no setter -
onadvertisementreceived
↔ EventHandlerNonNull<
Event> ? -
Available on BluetoothDeviceEventHandlers, provided by the PropsBluetoothDeviceEventHandlers extension
getter/setter pair -
oncharacteristicvaluechanged
↔ EventHandlerNonNull<
Event> ? -
Available on CharacteristicEventHandlers, provided by the PropsCharacteristicEventHandlers extension
getter/setter pair -
ongattserverdisconnected
↔ EventHandlerNonNull<
Event> ? -
Available on BluetoothDeviceEventHandlers, provided by the PropsBluetoothDeviceEventHandlers extension
getter/setter pair -
onserviceadded
↔ EventHandlerNonNull<
Event> ? -
Available on ServiceEventHandlers, provided by the PropsServiceEventHandlers extension
getter/setter pair -
onservicechanged
↔ EventHandlerNonNull<
Event> ? -
Available on ServiceEventHandlers, provided by the PropsServiceEventHandlers extension
getter/setter pair -
onserviceremoved
↔ EventHandlerNonNull<
Event> ? -
Available on ServiceEventHandlers, provided by the PropsServiceEventHandlers extension
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- watchingAdvertisements → bool
-
Available on BluetoothDevice, provided by the PropsBluetoothDevice extension
no setter
Methods
-
addEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
dispatchEvent(
Event event) → bool -
Available on EventTarget, provided by the PropsEventTarget extension
-
forget(
) → Future< void> -
Available on BluetoothDevice, provided by the PropsBluetoothDevice extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeEventListener(
String type, EventListener? callback, [dynamic options]) → void -
Available on EventTarget, provided by the PropsEventTarget extension
-
toString(
) → String -
A string representation of this object.
inherited
-
watchAdvertisements(
[WatchAdvertisementsOptions? options]) → Future< void> -
Available on BluetoothDevice, provided by the PropsBluetoothDevice extension
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited