---
title: "instantActionWithTransition(with:expectedValues:expectedValueInterval:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclusteractions/instantactionwithtransition(with:expectedvalues:expectedvalueinterval:completionhandler:)"
---

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

## Declaration

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

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