@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="BluetoothRemoteGATTService")
public class BluetoothRemoteGATTService
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
EventHandler |
oncharacteristicvaluechanged |
EventHandler |
onserviceadded |
EventHandler |
onservicechanged |
EventHandler |
onserviceremoved |
| Modifier | Constructor and Description |
|---|---|
protected |
BluetoothRemoteGATTService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addServiceaddedListener(EventListener callback) |
void |
addServiceaddedListener(EventListener callback,
AddEventListenerOptions options) |
void |
addServiceaddedListener(EventListener callback,
boolean useCapture) |
void |
addServicechangedListener(EventListener callback) |
void |
addServicechangedListener(EventListener callback,
AddEventListenerOptions options) |
void |
addServicechangedListener(EventListener callback,
boolean useCapture) |
void |
addServiceremovedListener(EventListener callback) |
void |
addServiceremovedListener(EventListener callback,
AddEventListenerOptions options) |
void |
addServiceremovedListener(EventListener callback,
boolean useCapture) |
BluetoothDevice |
device()
The BluetoothGATTService.device read-only property returns information about a Bluetooth device through an instance of BluetoothDevice.
|
Promise<BluetoothRemoteGATTCharacteristic> |
getCharacteristic(BluetoothCharacteristicUUID characteristic)
The BluetoothGATTService.getCharacteristic() method returns a Promise to an instance of BluetoothGATTCharacteristic for a given universally unique identifier (UUID).
|
Promise<BluetoothRemoteGATTCharacteristic> |
getCharacteristic(int characteristic)
The BluetoothGATTService.getCharacteristic() method returns a Promise to an instance of BluetoothGATTCharacteristic for a given universally unique identifier (UUID).
|
Promise<BluetoothRemoteGATTCharacteristic> |
getCharacteristic(java.lang.String characteristic)
The BluetoothGATTService.getCharacteristic() method returns a Promise to an instance of BluetoothGATTCharacteristic for a given universally unique identifier (UUID).
|
Promise<JsArray<BluetoothRemoteGATTCharacteristic>> |
getCharacteristics()
The BluetoothGATTService.getCharacteristics() method returns a Promise to a list of BluetoothGATTCharacteristic instances for a given universally unique identifier (UUID).
|
Promise<JsArray<BluetoothRemoteGATTCharacteristic>> |
getCharacteristics(BluetoothCharacteristicUUID characteristic)
The BluetoothGATTService.getCharacteristics() method returns a Promise to a list of BluetoothGATTCharacteristic instances for a given universally unique identifier (UUID).
|
Promise<JsArray<BluetoothRemoteGATTCharacteristic>> |
getCharacteristics(int characteristic)
The BluetoothGATTService.getCharacteristics() method returns a Promise to a list of BluetoothGATTCharacteristic instances for a given universally unique identifier (UUID).
|
Promise<JsArray<BluetoothRemoteGATTCharacteristic>> |
getCharacteristics(java.lang.String characteristic)
The BluetoothGATTService.getCharacteristics() method returns a Promise to a list of BluetoothGATTCharacteristic instances for a given universally unique identifier (UUID).
|
Promise<BluetoothRemoteGATTService> |
getIncludedService(BluetoothServiceUUID service)
The BluetoothGATTService.getIncludedService() method returns a Promise to an instance of BluetoothGATTService for a given universally unique identifier (UUID).
|
Promise<BluetoothRemoteGATTService> |
getIncludedService(int service)
The BluetoothGATTService.getIncludedService() method returns a Promise to an instance of BluetoothGATTService for a given universally unique identifier (UUID).
|
Promise<BluetoothRemoteGATTService> |
getIncludedService(java.lang.String service)
The BluetoothGATTService.getIncludedService() method returns a Promise to an instance of BluetoothGATTService for a given universally unique identifier (UUID).
|
Promise<JsArray<BluetoothRemoteGATTService>> |
getIncludedServices()
The BluetoothGATTService.getIncludedServices() method returns a Promise to an Array of BluetoothGATTService instances for an optional universally unique identifier (UUID).
|
Promise<JsArray<BluetoothRemoteGATTService>> |
getIncludedServices(BluetoothServiceUUID service)
The BluetoothGATTService.getIncludedServices() method returns a Promise to an Array of BluetoothGATTService instances for an optional universally unique identifier (UUID).
|
Promise<JsArray<BluetoothRemoteGATTService>> |
getIncludedServices(int service)
The BluetoothGATTService.getIncludedServices() method returns a Promise to an Array of BluetoothGATTService instances for an optional universally unique identifier (UUID).
|
Promise<JsArray<BluetoothRemoteGATTService>> |
getIncludedServices(java.lang.String service)
The BluetoothGATTService.getIncludedServices() method returns a Promise to an Array of BluetoothGATTService instances for an optional universally unique identifier (UUID).
|
boolean |
isPrimary()
The BluetoothGATTService.isPrimary read-only property returns a Boolean that indicates whether this is a primary service.
|
void |
removeServiceaddedListener(EventListener callback) |
void |
removeServiceaddedListener(EventListener callback,
boolean useCapture) |
void |
removeServiceaddedListener(EventListener callback,
EventListenerOptions options) |
void |
removeServicechangedListener(EventListener callback) |
void |
removeServicechangedListener(EventListener callback,
boolean useCapture) |
void |
removeServicechangedListener(EventListener callback,
EventListenerOptions options) |
void |
removeServiceremovedListener(EventListener callback) |
void |
removeServiceremovedListener(EventListener callback,
boolean useCapture) |
void |
removeServiceremovedListener(EventListener callback,
EventListenerOptions options) |
java.lang.String |
uuid()
The BluetoothGATTService.uuid read-only property returns a DOMString representing the UUID of this service.
|
addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, values@Nullable public EventHandler oncharacteristicvaluechanged
@Nullable public EventHandler onserviceadded
@Nullable public EventHandler onservicechanged
@Nullable public EventHandler onserviceremoved
@JsProperty(name="device") @Nonnull public BluetoothDevice device()
@JsProperty(name="isPrimary") public boolean isPrimary()
@JsProperty(name="uuid") @Nonnull public java.lang.String uuid()
@Nonnull public Promise<BluetoothRemoteGATTCharacteristic> getCharacteristic(@Nonnull BluetoothCharacteristicUUID characteristic)
@Nonnull public Promise<BluetoothRemoteGATTCharacteristic> getCharacteristic(@Nonnull java.lang.String characteristic)
@Nonnull public Promise<BluetoothRemoteGATTCharacteristic> getCharacteristic(int characteristic)
@Nonnull public Promise<JsArray<BluetoothRemoteGATTCharacteristic>> getCharacteristics(@Nonnull BluetoothCharacteristicUUID characteristic)
@Nonnull public Promise<JsArray<BluetoothRemoteGATTCharacteristic>> getCharacteristics(@Nonnull java.lang.String characteristic)
@Nonnull public Promise<JsArray<BluetoothRemoteGATTCharacteristic>> getCharacteristics(int characteristic)
@Nonnull public Promise<JsArray<BluetoothRemoteGATTCharacteristic>> getCharacteristics()
@Nonnull public Promise<BluetoothRemoteGATTService> getIncludedService(@Nonnull BluetoothServiceUUID service)
@Nonnull public Promise<BluetoothRemoteGATTService> getIncludedService(@Nonnull java.lang.String service)
@Nonnull public Promise<BluetoothRemoteGATTService> getIncludedService(int service)
@Nonnull public Promise<JsArray<BluetoothRemoteGATTService>> getIncludedServices(@Nonnull BluetoothServiceUUID service)
@Nonnull public Promise<JsArray<BluetoothRemoteGATTService>> getIncludedServices(@Nonnull java.lang.String service)
@Nonnull public Promise<JsArray<BluetoothRemoteGATTService>> getIncludedServices(int service)
@Nonnull public Promise<JsArray<BluetoothRemoteGATTService>> getIncludedServices()
@JsOverlay
public final void addServiceaddedListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addServiceaddedListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addServiceaddedListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeServiceaddedListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeServiceaddedListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeServiceaddedListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addServicechangedListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addServicechangedListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addServicechangedListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeServicechangedListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeServicechangedListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeServicechangedListener(@Nonnull
EventListener callback)
@JsOverlay
public final void addServiceremovedListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addServiceremovedListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addServiceremovedListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeServiceremovedListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeServiceremovedListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeServiceremovedListener(@Nonnull
EventListener callback)