---
title: "barrierControlGoToPercent(with:expectedValues:expectedValueInterval:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusterbarriercontrol/barriercontrolgotopercent(with:expectedvalues:expectedvalueinterval:completionhandler:)"
---

# barrierControlGoToPercent(with:expectedValues:expectedValueInterval:completionHandler:)

## Declaration

```swift
func barrierControlGoToPercent(with params: MTRBarrierControlClusterBarrierControlGoToPercentParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func barrierControlGoToPercent(with params: MTRBarrierControlClusterBarrierControlGoToPercentParams, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws
```
