---
title: "result(opensIntent:dialog:snippetIntent:)"
framework: appintents
role: symbol
role_heading: Type Method
path: "appintents/intentresult/result(opensintent:dialog:snippetintent:)"
---

# result(opensIntent:dialog:snippetIntent:)

Indicates that a completed app intent displays an interactive snippet with a dialog and returns another intent to open the originating app.

## Declaration

```swift
static func result(opensIntent: some AppIntent, dialog: IntentDialog, snippetIntent: some SnippetIntent = EmptySnippetIntent()) -> Self where Self == IntentResultContainer<Never, Never, _SnippetIntentContainer, IntentDialog>
```

## Parameters

- `opensIntent`: An app intent to open the originating app and show the intent’s result.
- `dialog`: A custom success dialog
- `snippetIntent`: The intent responsible for presenting a snippet for this result
