---
title: "init(description:defaultValue:unit:unitAdjustForLocale:supportsNegativeNumbers:requestValueDialog:inputConnectionBehavior:)"
framework: appintents
role: symbol
role_heading: Initializer
path: "appintents/intentparameter/init(description:defaultvalue:unit:unitadjustforlocale:supportsnegativenumbers:requestvaluedialog:inputconnectionbehavior:)-13r7l"
---

# init(description:defaultValue:unit:unitAdjustForLocale:supportsNegativeNumbers:requestValueDialog:inputConnectionBehavior:)

Creates an app intent parameter that specifies the unit for the measurement.

## Declaration

```swift
convenience init(description: LocalizedStringResource? = nil, defaultValue: Double? = nil, unit: IntentParameter<Value>.Length, unitAdjustForLocale: Bool = false, supportsNegativeNumbers: Bool = true, 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.
- `unit`: The exact unit for this parameter. People won’t be able to change this unit.
- `unitAdjustForLocale`: Whether or not the unit should adjust to match someone’s locale. Default value is false.
- `supportsNegativeNumbers`: Whether or not this parameter supports negative number inputs. Default value is true.
- `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.
