---
title: "deviceAttestation(_:completedForDevice:attestationDeviceInfo:error:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrdeviceattestationdelegate/deviceattestation(_:completedfordevice:attestationdeviceinfo:error:)"
---

# deviceAttestation(_:completedForDevice:attestationDeviceInfo:error:)

## Declaration

```swift
optional func deviceAttestation(_ controller: MTRDeviceController, completedForDevice device: UnsafeMutableRawPointer, attestationDeviceInfo: MTRDeviceAttestationDeviceInfo, error: (any Error)?)
```
