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

# readAttributePrimary2X(completionHandler:)

## Declaration

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

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