DiscoveryManager

class DiscoveryManager(permissionsChecker: PermissionsChecker, discover: Discover)

A thread safe Manager that can start and stop discovery. If permissions not granted returns PermissionsNotGrantedException result. If discovery already started returns IllegalStateException

Constructors

Link copied to clipboard
constructor(permissionsChecker: PermissionsChecker, discover: Discover)

Functions

Link copied to clipboard
suspend fun startDiscovery(deviceInfo: DeviceInfo): Result<Flow<ConnectionCandidateEvent>>

Starts discovery for remote endpoints with the specified deviceInfo. If discovery already started returns IllegalStateException If permissions not granted returns PermissionsNotGrantedException Otherwise returns Flow of ConnectionCandidateEvent

Link copied to clipboard

Stops discovery