init(description:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:)
Creates an app intent parameter with a list of selectable options that can convert the selected value.
Declaration
convenience init<Spec, OptionsProvider>(description: LocalizedStringResource? = nil, controlStyle: IntentParameter<Value>.DoubleControlStyle = .stepper, inclusiveRange: IntentParameter<Value>.InclusiveRange<Value.ValueType>? = nil, requestValueDialog: IntentDialog? = nil, inputConnectionBehavior: InputConnectionBehavior = .default, optionsProvider: OptionsProvider, @ResolverSpecificationBuilder<Value.UnwrappedType> resolvers: @escaping () -> Spec) where Spec : ResolverSpecification, OptionsProvider : DynamicOptionsProvider, OptionsProvider.DefaultValue.ValueType == DoubleParameters
- 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.
- resolvers:
An object that converts a value of another type to this parameter’s type.