<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macCatalyst: -",
    "macOS: 26.4.0 -",
    "tvOS: 26.4.0 -",
    "visionOS: 26.4.0 -",
    "watchOS: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/IntentParameter/init(description:defaultUnit:requestValueDialog:inputConnectionBehavior:optionsProvider:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "App Intents",
      "AppIntents"
    ],
    "preciseIdentifier" : "s:10AppIntents15IntentParameterCAAs8DurationV9ValueTypeRtzrlE11description11defaultUnit07requestF6Dialog23inputConnectionBehavior15optionsProviderACyxG10Foundation23LocalizedStringResourceVSg_AcaeGRSrlE0eJ0Oyx_GSgYtAA0cL0VSgAA05InputnO0OYtqd__tcAA014DynamicOptionsQ0Rd__AE07DefaultF0_AFRTd__lufc"
  },
  "title" : "init(description:defaultUnit:requestValueDialog:inputConnectionBehavior:optionsProvider:)"
}
-->

# init(description:defaultUnit:requestValueDialog:inputConnectionBehavior:optionsProvider:)

Creates an app intent parameter with a list of selectable options.

```
convenience init<OptionsProvider>(description: LocalizedStringResource? = nil, defaultUnit: IntentParameter<Value>.DurationUnit? = nil, requestValueDialog: IntentDialog? = nil, inputConnectionBehavior: InputConnectionBehavior = .default, optionsProvider: OptionsProvider) where OptionsProvider : DynamicOptionsProvider, OptionsProvider.DefaultValue.ValueType == Duration
```

## Parameters

`description`

Additional details about this parameter.

`defaultUnit`

The default unit that should be selected when this parameter is initially created.

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)