Instance Method

resolveTemporalEventTrigger(for:with:)

Resolves the time-based trigger associated with the new tasks.

Declaration

optional func resolveTemporalEventTrigger(for intent: INAddTasksIntent, with completion: @escaping (INAddTasksTemporalEventTriggerResolutionResult) -> Void)

Parameters

intent

Details about the user’s request. Use this object to get the initial information, if any, provided by the user.

completion

The handler block to execute with the resolution. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:

resolutionResult

Details of your proposed resolution. For successful resolutions, create a resolution object with the INTemporalEventTrigger object representing the trigger that you intend to use.

Discussion

Implement this method to resolve any time-based triggers associated with the new tasks. Use the intent object to obtain the trigger information, if any, suggested by the user. If the intent doesn't contain any trigger information, and you don't require any, return a notRequired() resolution.