Contents

disambiguation(with:)

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

Declaration

class func disambiguation(with notesToDisambiguate: [INNote]) -> Self

Parameters

  • notesToDisambiguate:

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

Return Value

A new INNoteResolutionResult object.

Discussion

Use this method to create a result object when more than one note matches the given information and you can’t pick one definitively. Ask the user to select from among the notes that you specify.

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

See Also

Creating a Resolution Result Object