---
title: "result(actionButtonIntent:activityIdentifier:dialog:)"
framework: appintents
role: symbol
role_heading: Type Method
path: "appintents/intentresult/result(actionbuttonintent:activityidentifier:dialog:)"
---

# result(actionButtonIntent:activityIdentifier:dialog:)

Creates a result container with a follow-on intent, an identifier, and a dialog.

## Declaration

```swift
static func result<Intent>(actionButtonIntent: Intent, activityIdentifier: String, dialog: IntentDialog) -> Self where Self == IntentResultContainer<Never, Never, Never, IntentDialog>, Intent : AppIntent
```

## Parameters

- `actionButtonIntent`: A follow-on intent that can run next.
- `activityIdentifier`: An identifier for the follow-on intent.
- `dialog`: A custom success dialog.
