Contents

filterDiscoveryResults

An option to pass discovered accessories to the app for more custom filtering, before they’re displayed in the picker for selection.

Declaration

static var filterDiscoveryResults: ASPickerDisplaySettings.Options { get }

Mentioned in

Discussion

When your picker uses this option, your ASAccessorySession receives events of type ASAccessoryEventType.accessoryDiscovered. Handle this event by examining the discovered accessory. To include it in the picker, create a new ASDiscoveredDisplayItem for it and call updatePicker(showing:completionHandler:).