Contents

init(description:default:inputOptions:requestValueDialog:inputConnectionBehavior:resolvers:)

Creates an app intent parameter that can convert the selected value.

Declaration

convenience init<Spec>(description: LocalizedStringResource? = nil, default defaultValue: Value.UnwrappedType? = nil, inputOptions: String.IntentInputOptions? = nil, requestValueDialog: IntentDialog? = nil, inputConnectionBehavior: InputConnectionBehavior = .default, @ResolverSpecificationBuilder<Value.UnwrappedType> resolvers: @escaping () -> Spec) where Spec : ResolverSpecification

Parameters

  • description:

    Additional details about this parameter.

  • defaultValue:

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

  • inputOptions:

    An object that describes how a person can input the value.

  • 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.

  • resolvers:

    An object that converts a value of another type to this parameter’s type.