BluetoothRemoteGATTService class

Experimental: This is an experimental technologyCheck the Browser compatibility table carefully before using this in production.

Note: This page describes the W3C Community Group BluetoothRemoteGATTService, formerly called BluetoothGATTService. For the Firefox OS interface of the same name, see BluetoothGattService.

The interface of the Web Bluetooth API represents a service provided by a GATT server, including a device, a list of referenced services, and a list of the characteristics of this service.

EventTarget

BluetoothRemoteGATTService

Implemented types
Available extensions
Annotations
  • @experimental
  • @JS.new()
  • @staticInterop

Constructors

BluetoothRemoteGATTService()
factory

Properties

device → BluetoothDevice

Available on BluetoothRemoteGATTService, provided by the PropsBluetoothRemoteGATTService extension

no setter
hashCode → int
The hash code for this object.
no setterinherited
isPrimary → bool

Available on BluetoothRemoteGATTService, provided by the PropsBluetoothRemoteGATTService extension

no setter
oncharacteristicvaluechanged ↔ EventHandlerNonNull<Event>?

Available on CharacteristicEventHandlers, provided by the PropsCharacteristicEventHandlers 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
uuid → String

Available on BluetoothRemoteGATTService, provided by the PropsBluetoothRemoteGATTService 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

getCharacteristic(dynamic characteristic) → Future<BluetoothRemoteGATTCharacteristic>

Available on BluetoothRemoteGATTService, provided by the PropsBluetoothRemoteGATTService extension

getCharacteristics([dynamic characteristic]) → Future<Iterable<BluetoothRemoteGATTCharacteristic>>

Available on BluetoothRemoteGATTService, provided by the PropsBluetoothRemoteGATTService extension

getIncludedService(dynamic service) → Future<BluetoothRemoteGATTService>

Available on BluetoothRemoteGATTService, provided by the PropsBluetoothRemoteGATTService extension

getIncludedServices([dynamic service]) → Future<Iterable<BluetoothRemoteGATTService>>

Available on BluetoothRemoteGATTService, provided by the PropsBluetoothRemoteGATTService 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

Operators

operator ==(Object other) → bool
The equality operator.
inherited