needsDisambiguationError(among:dialog:)
Returns a restartPerform error with context for the user to disambiguate amongst an array of values from for this parameter and re-perform the intent with the new value.
Declaration
final func needsDisambiguationError(among itemsToDisambiguate: [Value.ValueType], dialog: IntentDialog? = nil) -> AppIntentErrorParameters
- itemsToDisambiguate:
The list of items to be presented to the user for disambiguation
- dialog:
A custom dialog that may be used when prompting the user for the value
Return Value
An error that should be thrown within the intent perform() method.