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

# readAttributePrimary2Y(completionHandler:)

## Declaration

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

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