Contents

disambiguation(with:)

Creates an object whose resolution requires the user to select from among the specified objects.

Declaration

class func disambiguation(with taskListsToDisambiguate: [INTaskList]) -> Self

Parameters

  • taskListsToDisambiguate:

    An array of Intasklist objects for the user to choose from.

Return Value

A new INTaskListResolutionResult object.

Discussion

Use this method to create a result object when more than one task list matches the given information and you cannot pick one definitively. Ask the user to select from among the task lists that you specify.

For each INTaskList object that you provide, include enough information to be able to locate that list again later. When the user selects one of the task lists, SiriKit puts the details from your INTaskList object into the intent and asks you to resolve the task list again. Therefore, you might assign a unique value to the identifier property of the task list so that you can perform a fast lookup of the selected list during the second resolution pass.

See Also

Creating a Resolution Result Object