@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="BluetoothRemoteGATTCharacteristic")
public class BluetoothRemoteGATTCharacteristic
extends EventTarget
| Modifier and Type | Field and Description |
|---|---|
EventHandler |
oncharacteristicvaluechanged |
| Modifier | Constructor and Description |
|---|---|
protected |
BluetoothRemoteGATTCharacteristic() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacteristicvaluechangedListener(ValueEventListener callback) |
void |
addCharacteristicvaluechangedListener(ValueEventListener callback,
AddEventListenerOptions options) |
void |
addCharacteristicvaluechangedListener(ValueEventListener callback,
boolean useCapture) |
Promise<BluetoothRemoteGATTDescriptor> |
getDescriptor(BluetoothDescriptorUUID descriptor)
The BluetoothRemoteGATTCharacteristic.getDescriptor() method returns a Promise that resolves to the first BluetoothGATTDescriptor for a given descriptor UUID.
|
Promise<BluetoothRemoteGATTDescriptor> |
getDescriptor(int descriptor)
The BluetoothRemoteGATTCharacteristic.getDescriptor() method returns a Promise that resolves to the first BluetoothGATTDescriptor for a given descriptor UUID.
|
Promise<BluetoothRemoteGATTDescriptor> |
getDescriptor(java.lang.String descriptor)
The BluetoothRemoteGATTCharacteristic.getDescriptor() method returns a Promise that resolves to the first BluetoothGATTDescriptor for a given descriptor UUID.
|
Promise<JsArray<BluetoothRemoteGATTDescriptor>> |
getDescriptors()
The BluetoothRemoteGATTCharacteristic.getDescriptors() method returns a Promise that resolves to an Array of all BluetoothGATTDescriptor objects for a given descriptor UUID.
|
Promise<JsArray<BluetoothRemoteGATTDescriptor>> |
getDescriptors(BluetoothDescriptorUUID descriptor)
The BluetoothRemoteGATTCharacteristic.getDescriptors() method returns a Promise that resolves to an Array of all BluetoothGATTDescriptor objects for a given descriptor UUID.
|
Promise<JsArray<BluetoothRemoteGATTDescriptor>> |
getDescriptors(int descriptor)
The BluetoothRemoteGATTCharacteristic.getDescriptors() method returns a Promise that resolves to an Array of all BluetoothGATTDescriptor objects for a given descriptor UUID.
|
Promise<JsArray<BluetoothRemoteGATTDescriptor>> |
getDescriptors(java.lang.String descriptor)
The BluetoothRemoteGATTCharacteristic.getDescriptors() method returns a Promise that resolves to an Array of all BluetoothGATTDescriptor objects for a given descriptor UUID.
|
BluetoothCharacteristicProperties |
properties()
The BluetoothRemoteGATTCharacteristic.properties read-only property returns a BluetoothCharacteristicProperties instance containing the properties of this characteristic.
|
Promise<DataView> |
readValue()
The BluetoothRemoteGATTCharacteristic.readValue() method returns a Promise that resolves to a DataView holding a duplicate of the value property if it is available and supported.
|
void |
removeCharacteristicvaluechangedListener(ValueEventListener callback) |
void |
removeCharacteristicvaluechangedListener(ValueEventListener callback,
boolean useCapture) |
void |
removeCharacteristicvaluechangedListener(ValueEventListener callback,
EventListenerOptions options) |
BluetoothRemoteGATTService |
service()
The BluetoothRemoteGATTCharacteristic.service read-only property returns the BluetoothGATTService this characteristic belongs to.
|
Promise<BluetoothRemoteGATTCharacteristic> |
startNotifications()
The BluetoothRemoteGATTCharacteristic.startNotifications() method returns a Promise to the BluetoothRemoteGATTCharacteristic instance when there is an active notification on it.
|
Promise<BluetoothRemoteGATTCharacteristic> |
stopNotifications()
The BluetoothRemoteGATTCharacteristic.stopNotifications() method returns a Promise to the BluetoothRemoteGATTCharacteristic instance when there is no longer an active notification on it.
|
java.lang.String |
uuid()
The BluetoothRemoteGATTCharacteristic.uuid read-only property returns DOMString containing the UUID of the characteristic, for example '00002a37-0000-1000-8000-00805f9b34fb' for the Heart Rate Measurement characteristic.
|
DataView |
value()
The BluetoothRemoteGATTCharacteristic.value read-only property returns currently cached characteristic value.
|
Promise<java.lang.Void> |
writeValue(BufferSource value)
The BluetoothRemoteGATTCharacteristic.writeValue() method sets the value property to the bytes contained in an ArrayBuffer and returns a Promise.
|
Promise<java.lang.Void> |
writeValueWithoutResponse(BufferSource value) |
Promise<java.lang.Void> |
writeValueWithResponse(BufferSource value) |
addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListener@Nullable public EventHandler oncharacteristicvaluechanged
@JsProperty(name="properties") @Nonnull public BluetoothCharacteristicProperties properties()
@JsProperty(name="service") @Nonnull public BluetoothRemoteGATTService service()
@JsProperty(name="uuid") @Nonnull public java.lang.String uuid()
@JsProperty(name="value") @Nullable public DataView value()
@Nonnull public Promise<BluetoothRemoteGATTDescriptor> getDescriptor(@Nonnull BluetoothDescriptorUUID descriptor)
@Nonnull public Promise<BluetoothRemoteGATTDescriptor> getDescriptor(@Nonnull java.lang.String descriptor)
@Nonnull public Promise<BluetoothRemoteGATTDescriptor> getDescriptor(int descriptor)
@Nonnull public Promise<JsArray<BluetoothRemoteGATTDescriptor>> getDescriptors(@Nonnull BluetoothDescriptorUUID descriptor)
@Nonnull public Promise<JsArray<BluetoothRemoteGATTDescriptor>> getDescriptors(@Nonnull java.lang.String descriptor)
@Nonnull public Promise<JsArray<BluetoothRemoteGATTDescriptor>> getDescriptors(int descriptor)
@Nonnull public Promise<JsArray<BluetoothRemoteGATTDescriptor>> getDescriptors()
@Nonnull public Promise<DataView> readValue()
@Nonnull public Promise<BluetoothRemoteGATTCharacteristic> startNotifications()
@Nonnull public Promise<BluetoothRemoteGATTCharacteristic> stopNotifications()
@Nonnull public Promise<java.lang.Void> writeValue(@Nonnull BufferSource value)
@Nonnull public Promise<java.lang.Void> writeValueWithResponse(@Nonnull BufferSource value)
@Nonnull public Promise<java.lang.Void> writeValueWithoutResponse(@Nonnull BufferSource value)
@JsOverlay
public final void addCharacteristicvaluechangedListener(@Nonnull
ValueEventListener callback,
@Nonnull
AddEventListenerOptions options)
@JsOverlay
public final void addCharacteristicvaluechangedListener(@Nonnull
ValueEventListener callback,
boolean useCapture)
@JsOverlay
public final void addCharacteristicvaluechangedListener(@Nonnull
ValueEventListener callback)
@JsOverlay
public final void removeCharacteristicvaluechangedListener(@Nonnull
ValueEventListener callback,
@Nonnull
EventListenerOptions options)
@JsOverlay
public final void removeCharacteristicvaluechangedListener(@Nonnull
ValueEventListener callback,
boolean useCapture)
@JsOverlay
public final void removeCharacteristicvaluechangedListener(@Nonnull
ValueEventListener callback)