---
title: "setDefaultNTPWith(_:expectedValues:expectedValueInterval:completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclustertimesynchronization/setdefaultntpwith(_:expectedvalues:expectedvalueinterval:completion:)"
---

# setDefaultNTPWith(_:expectedValues:expectedValueInterval:completion:)

## Declaration

```swift
func setDefaultNTPWith(_ params: MTRTimeSynchronizationClusterSetDefaultNTPParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func setDefaultNTPWith(_ params: MTRTimeSynchronizationClusterSetDefaultNTPParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws
```
