@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="BluetoothDevice")
public class BluetoothDevice
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
@JsNullable BluetoothAdvertisingEventHandler |
onadvertisementreceived |
@JsNullable EventHandler |
oncharacteristicvaluechanged |
@JsNullable EventHandler |
ongattserverdisconnected |
@JsNullable EventHandler |
onserviceadded |
@JsNullable EventHandler |
onservicechanged |
@JsNullable 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_, valuespublic @JsNullable BluetoothAdvertisingEventHandler onadvertisementreceived
public @JsNullable EventHandler oncharacteristicvaluechanged
public @JsNullable EventHandler ongattserverdisconnected
public @JsNullable EventHandler onserviceadded
public @JsNullable EventHandler onservicechanged
public @JsNullable 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()
public @JsNonNull Promise<java.lang.Void> watchAdvertisements(@Nonnull WatchAdvertisementsOptions options)
public @JsNonNull 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)