Contents

init(_:widgetKind:relevance:)

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

Declaration

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 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 Relevancekit framework.