mozilla-magnet / magnet-scanner-ios

An iOS library that scans for URLs around you
Mozilla Public License 2.0
1 stars 4 forks source link

Add onLost #13

Open wilsonpage opened 7 years ago

wilsonpage commented 7 years ago

To abstract clients from the complexities of declaring an item lost from several discovery mechanisms we need to move this into library code.

Scanners should keep internal items list. When items are found/lost, they are added/removed from this list.

When a client calls start for the first time, they should be notified of any items that already exist in the scanner's list.

wilsonpage commented 7 years ago

@arcturus anything to add?

arcturus commented 7 years ago

Sounds like a good plan.