---
title: "MTREventNameForID(_:_:)"
framework: matter
role: symbol
role_heading: Function
path: "matter/mtreventnameforid(_:_:)"
---

# MTREventNameForID(_:_:)

Resolve Matter event IDs into a descriptive string.

## Declaration

```swift
func MTREventNameForID(_ clusterID: MTRClusterIDType, _ eventID: MTREventIDType) -> String!
```

## Discussion

Discussion For unknown IDs, a string ‘<Unknown clusterID %d>’ (if the cluster ID is not known) or ‘<Unknown eventID %d>’ (if the cluster ID is known but the event ID is not known) will be returned.
