---
title: cancel()
framework: cryptotokenkit
role: symbol
role_heading: Instance Method
path: cryptotokenkit/tksmartcarduserinteraction/cancel()
---

# cancel()

Attempts to cancel an interaction started by calling run(reply:). For certain interactions, cancellation may not be available.

## Declaration

```swift
func cancel() -> Bool
```

## Return Value

Return Value Returns false if the operation is not running, or if cancelation is not supported.

## See Also

### Starting and Stopping

- [run(reply:)](cryptotokenkit/tksmartcarduserinteraction/run(reply:).md)
