---
title: "init(_:widgetKind:relevance:)"
framework: appintents
role: symbol
role_heading: Initializer
path: "appintents/relevantintent/init(_:widgetkind:relevance:)"
---

# init(_:widgetKind:relevance:)

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

## Declaration

```swift
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 doc://com.apple.AppIntents/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.
