discover abstract method

Future<bool> discover()

Starts searching for devices using a platform-specific service.

Note that the NearbyIOSService implementation starts browsing or advertising depending on the NearbyIOSService.isBrowser.

On Android can throw mapped from native platform exceptions:

  1. NearbyServiceBusyException
  2. NearbyServiceP2PUnsupportedException
  3. NearbyServiceNoServiceRequestsException
  4. NearbyServiceGenericErrorException
  5. NearbyServiceUnknownException

Implementation

Future<bool> discover();