<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/FocusFilterAppContext",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents011FocusFilterA7ContextV"
  },
  "title" : "FocusFilterAppContext"
}
-->

# FocusFilterAppContext

A type that contains app-specific contextual information for a particular Focus, such as the notification filter criteria to
apply.

```
struct FocusFilterAppContext
```

## Topics

### Creating the app context

[`init(notificationFilterPredicate: NSPredicate?)`](/documentation/AppIntents/FocusFilterAppContext/init(notificationFilterPredicate:))

Creates a `FocusFilterAppContext` with a specified `notificationFilterPredicate`

### Getting the filter predicate

[`let notificationFilterPredicate: NSPredicate?`](/documentation/AppIntents/FocusFilterAppContext/notificationFilterPredicate)

An `NSPredicate` for system to filter the user’s notifications of the app when a Focus is
active.

### Initializers

[`init(notificationFilterPredicate: NSPredicate?, targetContentIdentifierPrefix: String?)`](/documentation/AppIntents/FocusFilterAppContext/init(notificationFilterPredicate:targetContentIdentifierPrefix:))

Creates a focus filter context with a specified predicate and identifier prefix.

### Instance Properties

[`let targetContentIdentifierPrefix: String?`](/documentation/AppIntents/FocusFilterAppContext/targetContentIdentifierPrefix)

An identifier you provide to the system for use in scheme prefixes for Focus.

---

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)