@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="BluetoothDevice")
public class BluetoothDevice
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
EventHandler |
onadvertisementreceived |
EventHandler |
oncharacteristicvaluechanged |
EventHandler |
ongattserverdisconnected |
EventHandler |
onserviceadded |
EventHandler |
onservicechanged |
EventHandler |
onserviceremoved |
| Modifier | Constructor and Description |
|---|---|
protected |
BluetoothDevice() |
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 onadvertisementreceived
@Nullable public EventHandler oncharacteristicvaluechanged
@Nullable public EventHandler ongattserverdisconnected
@Nullable public EventHandler onserviceadded
@Nullable public EventHandler onservicechanged
@Nullable public EventHandler onserviceremoved
@JsProperty(name="gatt") @Nullable public BluetoothRemoteGATTServer gatt()
@JsProperty(name="id") @Nonnull public java.lang.String id()
@JsProperty(name="name") @Nullable public java.lang.String name()
@JsProperty(name="watchingAdvertisements") public boolean watchingAdvertisements()
@Nonnull public Promise<java.lang.Void> watchAdvertisements(@Nonnull WatchAdvertisementsOptions options)
@Nonnull public Promise<java.lang.Void> watchAdvertisements()
@JsOverlay
public final void addAdvertisementreceivedListener(@Nonnull
BluetoothAdvertisingEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addAdvertisementreceivedListener(@Nonnull
BluetoothAdvertisingEventListener callback,
boolean useCapture)
@JsOverlay
public final void addAdvertisementreceivedListener(@Nonnull
BluetoothAdvertisingEventListener callback)
@JsOverlay
public final void removeAdvertisementreceivedListener(@Nonnull
BluetoothAdvertisingEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeAdvertisementreceivedListener(@Nonnull
BluetoothAdvertisingEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeAdvertisementreceivedListener(@Nonnull
BluetoothAdvertisingEventListener callback)
@JsOverlay
public final void addGattserverdisconnectedListener(@Nonnull
EventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addGattserverdisconnectedListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void addGattserverdisconnectedListener(@Nonnull
EventListener callback)
@JsOverlay
public final void removeGattserverdisconnectedListener(@Nonnull
EventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeGattserverdisconnectedListener(@Nonnull
EventListener callback,
boolean useCapture)
@JsOverlay
public final void removeGattserverdisconnectedListener(@Nonnull
EventListener callback)