---
title: "deviceAttestationCompleted(for:opaqueDeviceHandle:attestationDeviceInfo:error:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrdeviceattestationdelegate/deviceattestationcompleted(for:opaquedevicehandle:attestationdeviceinfo:error:)"
---

# deviceAttestationCompleted(for:opaqueDeviceHandle:attestationDeviceInfo:error:)

## Declaration

```swift
optional func deviceAttestationCompleted(for controller: MTRDeviceController, opaqueDeviceHandle: UnsafeMutableRawPointer, attestationDeviceInfo: MTRDeviceAttestationDeviceInfo, error: (any Error)?)
```
