LocalDevice.setDiscoverable(int mode)
API implementation supports setting discoverability mode to values DiscoveryAgent.GIAC
, DiscoveryAgent.LIAC
, and DiscoveryAgent.NOT_DISCOVERABLE
. If some other
value is given as a parameter, the method returns false and discoverability
mode is not changed.
When the application sets discoverability mode to be limitedly discoverable
(DiscoveryAgent.LIAC
), the device is discoverable in DiscoveryAgent.GIAC
mode
for 60 seconds. After the time is up, the API implementation sets discoverability
mode to hidden (DiscoveryAgent.NOT_DISCOVERABLE
).