Contents

init(title:description:default:displayStyle:requestValueDialog:inputConnectionBehavior: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, displayStyle: IntentParameter<Value>.PlacemarkDisplayStyle = .name, requestValueDialog: IntentDialog? = nil, inputConnectionBehavior: InputConnectionBehavior = .default, optionsProvider: OptionsProvider) where OptionsProvider : DynamicOptionsProvider, OptionsProvider.DefaultValue.ValueType == CLPlacemark

Parameters

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

  • displayStyle:

    The component of a selected location to display, such as a city or street address.

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