result(value:dialog:snippetIntent:)
Indicates that a completed app intent displays an interactive snippet with a dialog and returns a value.
Declaration
static func result<Value>(value: Value, dialog: IntentDialog, snippetIntent: some SnippetIntent = EmptySnippetIntent()) -> Self where Self == IntentResultContainer<Value, Never, _SnippetIntentContainer, IntentDialog>, Value : _IntentValueParameters
- value:
The value produced by the
AppIntent - dialog:
A custom success dialog
- snippetIntent:
The intent responsible for presenting a snippet for this result