Contents

init(title:description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:query:)

Creates an app intent parameter with an entity search query.

Declaration

convenience init<Query>(title: LocalizedStringResource, description: LocalizedStringResource? = nil, default defaultValue: Value.UnwrappedType? = nil, supportedContentTypes: Array<UTType>? = nil, requestValueDialog: IntentDialog? = nil, requestDisambiguationDialog: IntentDialog? = nil, inputConnectionBehavior: InputConnectionBehavior = .default, query: Query) where Query : EntityQuery, Value.ValueType == Query.Entity

Parameters

  • title:

    A word or short phrase summarizing this parameter.

  • description:

    Additional details about this parameter.

  • defaultValue:

    The default value for this parameter. People can specify a different value.

  • supportedContentTypes:

    A list of selectable type identifiers for this parameter.

  • requestValueDialog:

    A prompt that asks a person to provide the parameter value.

  • requestDisambiguationDialog:

    A prompt that asks a person to choose among possible parameter values.

  • inputConnectionBehavior:

    An enum that indicates how this parameter receives the output from a preceding app intent.

  • query:

    A query that Siri and the Shortcuts app can use to retrieve instances of your entity.