Contents

init(description:default:mode:requestValueDialog:inputConnectionBehavior:)

Creates an app intent parameter.

Declaration

convenience init(description: LocalizedStringResource? = nil, default defaultValue: Value.UnwrappedType? = nil, mode: IntentPerson.ParameterMode = .contact, requestValueDialog: IntentDialog? = nil, inputConnectionBehavior: InputConnectionBehavior = .default)

Parameters

  • description:

    Additional details about this parameter.

  • defaultValue:

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

  • mode:

    The user interface that appears when a person chooses a value for this parameter. Default value is .contact.

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