---
title: "writeAttributePresentValue(withValue:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterbinaryinputbasic/writeattributepresentvalue(withvalue:completionhandler:)"
---

# writeAttributePresentValue(withValue:completionHandler:)

## Declaration

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

```swift
func writeAttributePresentValue(withValue value: NSNumber) async throws
```
