---
title: "init(for:summary:optionsCollections:)"
framework: appintents
role: symbol
role_heading: Initializer
path: "appintents/appshortcutparameterpresentation/init(for:summary:optionscollections:)"
---

# init(for:summary:optionsCollections:)

Creates an object that represents the App Shortcut with the specified parameters.

## Declaration

```swift
init(for keyPath: ParameterKeyPath, summary: AppShortcutParameterPresentationSummary<Intent, Value, Parameter, ParameterKeyPath>, @AppShortcutOptionsCollectionSpecificationBuilder<Value.UnwrappedType> optionsCollections: () -> some AppShortcutOptionsCollectionSpecification<Value.UnwrappedType>)
```

## Parameters

- `keyPath`: A KeyPath representing the parameter being used in the presentation.
- `summary`: Represents the summary of the parameter used in the presentation.
- `optionsCollections`: A closure returning an AppShortcutOptionsCollectionSpecification that defines the options available for the parameter used in the presentation.
