init(title:description:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:)
Creates an app intent parameter with a list of selectable options.
Declaration
convenience init<OptionsProvider>(title: LocalizedStringResource, description: LocalizedStringResource? = nil, controlStyle: IntentParameter<Value>.IntControlStyle = .stepper, inclusiveRange: IntentParameter<Value>.InclusiveRange<Value.ValueType>? = nil, requestValueDialog: IntentDialog? = nil, inputConnectionBehavior: InputConnectionBehavior = .default, optionsProvider: OptionsProvider) where OptionsProvider : DynamicOptionsProvider, OptionsProvider.DefaultValue.ValueType == IntParameters
- title:
A word or short phrase summarizing this parameter.
- description:
Additional details about this parameter.
- controlStyle:
The type of user input control for this parameter.
- inclusiveRange:
The allowed minimum and maximum values for this parameter.
- requestValueDialog:
A prompt that asks a person to provide the parameter value.
- inputConnectionBehavior:
An enum that indicates how this parameter receives the output from a preceding app intent.
- optionsProvider:
An object that determines selectable options for this parameter.
See Also
Creating an intent parameter
init(title:description:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:)init(title:description:default:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:)init(title:description:default:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:resolvers:)IntentParameter.InclusiveRange