---
title: "init(description:default:mode:size:inputConnectionBehavior:)"
framework: appintents
role: symbol
role_heading: Initializer
path: "appintents/intentparameter/init(description:default:mode:size:inputconnectionbehavior:)-7ydg"
---

# init(description:default:mode:size:inputConnectionBehavior:)

Creates an app intent parameter for an array with a specified size per widget family.

## Declaration

```swift
convenience init(description: LocalizedStringResource? = nil, default defaultValue: Value.UnwrappedType? = nil, mode: IntentPerson.ParameterMode = .contact, size: [IntentWidgetFamily : IntentCollectionSize], 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.
- `size`: The size of the array for a widget family. Use this to limit the amount of values.
- `inputConnectionBehavior`: An enum that indicates how this parameter receives the output from a preceding app intent.
