disambiguation(with:)
Creates an object whose resolution requires the user to select from among the specified objects.
Declaration
class func disambiguation(with tasksToDisambiguate: [INTask]) -> SelfParameters
- tasksToDisambiguate:
An array of Intask objects for the user to choose from.
Return Value
A new INTaskResolutionResult object.
Discussion
Use this method to create a result object when more than one task matches the given information and you cannot pick one definitively. Ask the user to select from among the tasks that you specify.
For each INTask object that you provide, include enough information to be able to locate that task again later. When the user selects one of the tasks, SiriKit puts the details from your INTask object into the intent and asks you to resolve the task again. Therefore, you might assign a unique value to the identifier property of the task so that you can perform a fast lookup of the selected task during the second resolution pass.