Advertiser
interface Advertiser
Functions
Link copied to clipboard
abstract suspend fun startAdvertising(deviceInfo: DeviceInfo): Result<Flow<ConnectionCandidateEvent>>
Starts advertising an endpoint for a local app.
Link copied to clipboard
Stops advertising a local endpoint. Should be called after calling startAdvertising, as soon as the application no longer needs to advertise itself or goes inactive. Payloads can still be sent to connected endpoints after advertising ends.