init(title:description:mode:size:inputConnectionBehavior:)
Creates an app intent parameter for an array with a specified size per widget family.
Declaration
convenience init(title: LocalizedStringResource, description: LocalizedStringResource? = nil, mode: IntentPerson.ParameterMode = .contact, size: [IntentWidgetFamily : IntentCollectionSize], inputConnectionBehavior: InputConnectionBehavior = .default)Parameters
- title:
A word or short phrase summarizing this parameter.
- description:
Additional details about this parameter.
- mode:
The user interface that appears when a person chooses a value for this parameter. Default value is
.contact. - size:
The size of the array for a widget family. Use this to limit the amount of values.
- inputConnectionBehavior:
An enum that indicates how this parameter receives the output from a preceding app intent.
See Also
Creating an intent parameter
init(title:description:mode:requestValueDialog:inputConnectionBehavior:)init(title:description:mode:requestValueDialog:inputConnectionBehavior:optionsProvider:)init(title:description:mode:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:)init(title:description:mode:requestValueDialog:inputConnectionBehavior:resolvers:)init(title:description:mode:size:inputConnectionBehavior:)