Contents

result(value:opensIntent:dialog:snippetIntent:)

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

Declaration

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

Parameters

  • value:

    The value produced by the AppIntent

  • 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