---
title: "connectInitiator(_:with:)"
framework: coremidi
role: symbol
role_heading: Instance Method
path: "coremidi/midiciprofileresponderdelegate/connectinitiator(_:with:)"
---

# connectInitiator(_:with:)

Enables a MIDI-CI initiator to create a session or reject the connection attempt.

## Declaration

```swift
func connectInitiator(_ initiatorMUID: MIDICIInitiatiorMUID, with deviceInfo: MIDICIDeviceInfo) -> Bool
```

## Parameters

- `initiatorMUID`: The ID of the MIDI-CI initiator.
- `deviceInfo`: The information that describes a device.

## See Also

### Protocol Methods

- [handleData(for:onChannel:data:)](coremidi/midiciprofileresponderdelegate/handledata(for:onchannel:data:).md)
- [willSetProfile(_:onChannel:enabled:)](coremidi/midiciprofileresponderdelegate/willsetprofile(_:onchannel:enabled:).md)
- [initiatorDisconnected(_:)](coremidi/midiciprofileresponderdelegate/initiatordisconnected(_:).md)
