@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="BluetoothRemoteGATTServer")
public class BluetoothRemoteGATTServer
extends JsObject
| Modifier | Constructor and Description |
|---|---|
protected |
BluetoothRemoteGATTServer() |
| Modifier and Type | Method and Description |
|---|---|
@JsNonNull Promise<BluetoothRemoteGATTServer> |
connect()
The BluetoothRemoteGATTServer.connect() method causes the script execution environment to connect to this.device.
|
boolean |
connected()
The BluetoothRemoteGATTServer.connected read-only property returns a boolean value that returns true while this script execution environment is connected to this.device.
|
BluetoothDevice |
device()
The BluetoothRemoteGATTServer.device read-only property returns a reference to the BluetoothDevice running the server.
|
void |
disconnect()
The BluetoothRemoteGATTServer.disconnect() method causes the script execution environment to disconnect from this.device.
|
@JsNonNull Promise<BluetoothRemoteGATTService> |
getPrimaryService(BluetoothServiceUUID service)
The BluetoothRemoteGATTServer.getPrimaryService() method returns a promise to the primary BluetoothGATTService offered by the bluetooth device for a specified BluetoothServiceUUID.
|
@JsNonNull Promise<BluetoothRemoteGATTService> |
getPrimaryService(int service)
The BluetoothRemoteGATTServer.getPrimaryService() method returns a promise to the primary BluetoothGATTService offered by the bluetooth device for a specified BluetoothServiceUUID.
|
@JsNonNull Promise<BluetoothRemoteGATTService> |
getPrimaryService(java.lang.String service)
The BluetoothRemoteGATTServer.getPrimaryService() method returns a promise to the primary BluetoothGATTService offered by the bluetooth device for a specified BluetoothServiceUUID.
|
@JsNonNull Promise<JsArray<BluetoothRemoteGATTService>> |
getPrimaryServices()
The BluetoothRemoteGATTServer.getPrimaryServices() method returns a promise to a list of primary BluetoothGATTService objects offered by the bluetooth device for a specified BluetoothServiceUUID.
|
@JsNonNull Promise<JsArray<BluetoothRemoteGATTService>> |
getPrimaryServices(BluetoothServiceUUID service)
The BluetoothRemoteGATTServer.getPrimaryServices() method returns a promise to a list of primary BluetoothGATTService objects offered by the bluetooth device for a specified BluetoothServiceUUID.
|
@JsNonNull Promise<JsArray<BluetoothRemoteGATTService>> |
getPrimaryServices(int service)
The BluetoothRemoteGATTServer.getPrimaryServices() method returns a promise to a list of primary BluetoothGATTService objects offered by the bluetooth device for a specified BluetoothServiceUUID.
|
@JsNonNull Promise<JsArray<BluetoothRemoteGATTService>> |
getPrimaryServices(java.lang.String service)
The BluetoothRemoteGATTServer.getPrimaryServices() method returns a promise to a list of primary BluetoothGATTService objects offered by the bluetooth device for a specified BluetoothServiceUUID.
|
assign, 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@JsProperty(name="connected") public boolean connected()
@JsProperty(name="device") @Nonnull public BluetoothDevice device()
public @JsNonNull Promise<BluetoothRemoteGATTServer> connect()
public void disconnect()
public @JsNonNull Promise<BluetoothRemoteGATTService> getPrimaryService(@Nonnull BluetoothServiceUUID service)
public @JsNonNull Promise<BluetoothRemoteGATTService> getPrimaryService(@Nonnull java.lang.String service)
public @JsNonNull Promise<BluetoothRemoteGATTService> getPrimaryService(int service)
public @JsNonNull Promise<JsArray<BluetoothRemoteGATTService>> getPrimaryServices(@Nonnull BluetoothServiceUUID service)
public @JsNonNull Promise<JsArray<BluetoothRemoteGATTService>> getPrimaryServices(@Nonnull java.lang.String service)
public @JsNonNull Promise<JsArray<BluetoothRemoteGATTService>> getPrimaryServices(int service)
public @JsNonNull Promise<JsArray<BluetoothRemoteGATTService>> getPrimaryServices()