Version: Smart Feature Phone 2.5Version: Smart Feature Phone 2.6
BluetoothAdapter.setDiscoverable
Description#
The setDiscoverable method is used to change the value of the discoverable property for the device's adapter.
Syntax#
Parameters#
flagA boolean indicating if the device is discoverable (true) or not (false).
Return value#
A Promise to indicate whether the operation is resolved or rejected. If the bluetooth adapter is currently disabled or aDiscoverable is identical to current discoverable attribute, the Promise would be rejected.