getDevices method

JSPromise<JSArray<WebBluetoothDevice>> getDevices()

Returns a JSPromise with an JSArray of WebBluetoothDevices.

This method returns all the allowed devices that the user has granted access to. Even if the devices are not in range.

Devices can be removed from this list using WebBluetoothDevice.forget.

NOTE: Currently no browser supports this without a flag needing to be set!

See:

Implementation

JSPromise<JSArray<WebBluetoothDevice>> getDevices() =>
    _nativeBluetoothInstance.getDevices();