ReadonlyaddressReadonlydiscoverableReadonlydiscoveringReadonlygattReadonlynameReadonlypairingReadonlystateThe addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsConfirms the reception of a file from a remote device.
The address of the sender device.
True to accept the file, false to reject.
Connects to a specific service on a remote device.
The BluetoothDevice to connect to.
OptionalserviceUuid: numberThe UUID of the service to connect to.
Connects to the SCO (Synchronous Connection Oriented) link.
Disconnects from a specific service on a remote device.
The BluetoothDevice to disconnect from.
OptionalserviceUuid: numberThe UUID of the service to disconnect from.
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Retrieves the connected devices for a specific service.
The UUID of the service.
Initiates pairing with a remote device.
The address of the remote device.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsSends a file to a remote device.
The address of the recipient device.
The file content to send.
Sends media metadata to the remote device.
OptionalmediaMetaData: MediaMetaDataThe metadata to send.
Sends media play status to the remote device.
OptionalmediaPlayStatus: MediaPlayStatusThe play status to send.
Sets the discoverable state of the adapter.
Boolean indicating if the adapter should be discoverable.
Starts the discovery process for visible devices.
A Promise that resolves to a BluetoothDiscoveryHandle.
Starts scanning for Bluetooth Low Energy (LE) devices.
An array of service UUIDs to filter by.
Stops the discovery process.
Stops scanning for Bluetooth Low Energy (LE) devices.
The handle returned by startLeScan.
Stops sending a file to a remote device.
The address of the recipient device.
Unpairs a remote device.
The address of the remote device.
Permissions
bluetooth