---
title: "readAttributePrimary4Y(completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclustercolorcontrol/readattributeprimary4y(completionhandler:)"
---

# readAttributePrimary4Y(completionHandler:)

## Declaration

```swift
func readAttributePrimary4Y(completionHandler: @escaping @Sendable (NSNumber?, (any Error)?) -> Void)
```

```swift
func readAttributePrimary4Y() async throws -> NSNumber
```
