pairedDevices

abstract fun pairedDevices(devices: Map<Identifier, () -> Device>, filter: Filter, removeForAllPairedFilters: Boolean): suspend () -> ScanningState.Enabled

Transitions into an Enabled state where a set of devices is paired

Return

a method for transitioning into Enabled with the new list of paired Device

Parameters

devices

the map of Identifier and the method for creating a Device of all devices paired

filter

the Filter applied to finding the paired devices

removeForAllPairedFilters

if true the list of paired devices for all filters will be emptied