---
title: "profileState(forChannel:)"
framework: coremidi
role: symbol
role_heading: Instance Method
path: "coremidi/midicisession/profilestate(forchannel:)"
---

# profileState(forChannel:)

Returns the profile state for the specified MIDI channel number.

## Declaration

```swift
func profileState(forChannel channel: MIDIChannelNumber) -> MIDICIProfileState
```

## Parameters

- `channel`: The MIDI channel for which you return the profile state.

## Return Value

Return Value A profile state object.

## See Also

### Configuring a Session

- [enable(_:onChannel:)](coremidi/midicisession/enable(_:onchannel:).md)
- [disableProfile(_:onChannel:)](coremidi/midicisession/disableprofile(_:onchannel:).md)
- [MIDICIProfileChangedBlock](coremidi/midiciprofilechangedblock.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)
