---
title: "readAttributeCompensationText(withAttributeCache:endpoint:queue:completionHandler:)"
framework: matter
role: symbol
role_heading: Type Method
path: "matter/mtrbaseclustercolorcontrol/readattributecompensationtext(withattributecache:endpoint:queue:completionhandler:)"
---

# readAttributeCompensationText(withAttributeCache:endpoint:queue:completionHandler:)

## Declaration

```swift
class func readAttributeCompensationText(withAttributeCache attributeCacheContainer: MTRAttributeCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t, completionHandler: @escaping @Sendable (String?, (any Error)?) -> Void)
```

```swift
class func readAttributeCompensationText(withAttributeCache attributeCacheContainer: MTRAttributeCacheContainer, endpoint: NSNumber, queue: dispatch_queue_t) async throws -> String
```
