<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "macOS: 14.0.0 -",
    "visionOS: -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/RelevantIntent/init(_:widgetKind:relevance:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents14RelevantIntentV_10widgetKind9relevanceACx_SS12RelevanceKit0C7ContextVtcAA019WidgetConfigurationD0Rzlufc"
  },
  "title" : "init(_:widgetKind:relevance:)"
}
-->

# init(_:widgetKind:relevance:)

Creates an instance of this type using the specified app intent and relevance information.

```
init<IntentType>(_ intent: IntentType, widgetKind: String, relevance: RelevantContext) where IntentType : WidgetConfigurationIntent
```

## Parameters

`intent`

The app intent you want to suggest. Currently, the intent must be a
[`WidgetConfigurationIntent`](/documentation/AppIntents/WidgetConfigurationIntent) type.

`widgetKind`

A string you use to describe the intent.

`relevance`

Contextual clues to help the system decide where to use the widget. For
more information, see the documentation for this type in the
<doc://com.apple.documentation/documentation/RelevanceKit> framework.

---

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)