---
title: MIDICIProfileChangedBlock
framework: coremidi
role: symbol
role_heading: Type Alias
path: coremidi/midiciprofilechangedblock
---

# MIDICIProfileChangedBlock

A block the system calls to indicate it has enabled or disabled a profile.

## Declaration

```swift
typealias MIDICIProfileChangedBlock = (MIDICISession, MIDIChannelNumber, MIDICIProfile, Bool) -> Void
```

## Parameters

- `session`: The MIDI-CI session.
- `channel`: The MIDI channel number.
- `profile`: The profile the system enabled or disabled.
- `enabled`: A Boolean value that indicates whether the system enabled the profile.

## See Also

### Configuring a Session

- [profileState(forChannel:)](coremidi/midicisession/profilestate(forchannel:).md)
- [enable(_:onChannel:)](coremidi/midicisession/enable(_:onchannel:).md)
- [disableProfile(_:onChannel:)](coremidi/midicisession/disableprofile(_:onchannel:).md)
- [profileChangedCallback](coremidi/midicisession/profilechangedcallback.md)
- [send(_:onChannel:profileData:)](coremidi/midicisession/send(_:onchannel:profiledata:).md)
- [MIDICIProfileSpecificDataBlock](coremidi/midiciprofilespecificdatablock.md)
- [profileSpecificDataHandler](coremidi/midicisession/profilespecificdatahandler.md)
- [MIDIChannelsWholePort](coremidi/midichannelswholeport.md)
