<!--
{
  "availability" : [
    "iOS: 14.0.0 - 18.0.0",
    "iPadOS: 14.0.0 - 18.0.0",
    "macCatalyst: 14.0.0 - 18.0.0",
    "macOS: 11.0.0 - 15.0.0",
    "visionOS: 1.0.0 - 2.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMIDI",
  "identifier" : "/documentation/CoreMIDI/MIDICIDiscoveryManager/discover(handler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core MIDI"
    ],
    "preciseIdentifier" : "c:objc(cs)MIDICIDiscoveryManager(im)discoverWithHandler:"
  },
  "title" : "discover(handler:)"
}
-->

# discover(handler:)

Discovers the available MIDI-CI nodes.

```
func discover(handler completedHandler: @escaping MIDICIDiscoveryResponseBlock)
```

## Parameters

`completedHandler`

A closure the system calls when a MIDI-CI node discovery request is complete.

## Topics

### Handling Callbacks

[`MIDICIDiscoveryResponseBlock`](/documentation/CoreMIDI/MIDICIDiscoveryResponseBlock)

A block the system calls when a MIDI-CI node discovery request completes.

[`MIDICIDiscoveredNode`](/documentation/CoreMIDI/MIDICIDiscoveredNode)

A discovered MIDI-CI node that represents a MIDI source and destination that respond to capability inquiries.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)