Version: Smart Feature Phone 2.5Version: Smart Feature Phone 2.6
BluetoothAdapter.startDiscovery
Description#
The startDiscovery method is used to have the device's adapter start seeking for remote devices.
Syntax#
Return value#
A Promise to indicate whether the operation is resolved or rejected. If the Promise is resolved, it returns a BluetoothDiscoveryHandle. The BluetoothDiscoveryHandle's event handler ondevicefound is fired each time a remote bluetooth device is discovered. If the bluetooth adapter is currently discovering or disabled, the Promise would be rejected. In case of success, the BluetoothAdapter.discovering property is set to true.