<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FileProvider",
  "identifier" : "/documentation/FileProvider/NSFileProviderUserInteractionSuppressing/setInteractionSuppressed(_:forIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "File Provider"
    ],
    "preciseIdentifier" : "c:objc(pl)NSFileProviderUserInteractionSuppressing(im)setInteractionSuppressed:forIdentifier:"
  },
  "title" : "setInteractionSuppressed(_:forIdentifier:)"
}
-->

# setInteractionSuppressed(_:forIdentifier:)

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

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)