AdvertiseManager

class AdvertiseManager(permissionsChecker: PermissionsChecker, advertiser: Advertiser)

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

Constructors

Link copied to clipboard
constructor(permissionsChecker: PermissionsChecker, advertiser: Advertiser)

Functions

Link copied to clipboard

Starts advertising a local endpoint with the specified deviceInfo. If advertising already started returns IllegalStateException If permissions not granted returns PermissionsNotGrantedException Otherwise returns Flow of ConnectionCandidateEvent

Link copied to clipboard
suspend fun stopAdvertising()

Stops advertising