---
title: "setInteractionSuppressed(_:forIdentifier:)"
framework: fileprovider
role: symbol
role_heading: Instance Method
path: "fileprovider/nsfileprovideruserinteractionsuppressing/setinteractionsuppressed(_:foridentifier:)"
---

# setInteractionSuppressed(_:forIdentifier:)

Tells the File Provider extension that the user wants to suppress the user interaction.

## Declaration

```swift
func setInteractionSuppressed(_ suppression: Bool, forIdentifier suppressionIdentifier: String)
```

## Parameters

- `suppression`: A Boolean value that indicates whether the user wants to suppress the specified user interaction.
- `suppressionIdentifier`: A unique identifier for the user interaction.

## See Also

### Supressing Interactions

- [isInteractionSuppressed(forIdentifier:)](fileprovider/nsfileprovideruserinteractionsuppressing/isinteractionsuppressed(foridentifier:).md)
