init(title:description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:supportedValues:optionsProvider:)
Creates an app intent parameter with a list of selectable options.
Declaration
convenience init<OptionsProvider>(title: LocalizedStringResource, description: LocalizedStringResource? = nil, default defaultValue: Value.UnwrappedType? = nil, requestValueDialog: IntentDialog? = nil, requestDisambiguationDialog: IntentDialog? = nil, inputConnectionBehavior: InputConnectionBehavior = .default, supportedValues: [Value.ValueType] = Array(Value.ValueType.allCases), optionsProvider: OptionsProvider) where OptionsProvider : DynamicOptionsProvider, Value.ValueType == OptionsProvider.DefaultValue.ValueTypeParameters
- 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.
- 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.
- supportedValues:
A list of selectable options for this parameter.
- optionsProvider:
An object that determines selectable options for this parameter.