Contents

resolveTemporalEventTrigger(for:with:)

Resolves the time-based trigger to apply to the task.

Declaration

optional func resolveTemporalEventTrigger(for intent: INSetTaskAttributeIntent, with completion: @escaping  @Sendable (INTemporalEventTriggerResolutionResult) -> Void)
optional func resolveTemporalEventTrigger(for intent: INSetTaskAttributeIntent) async -> INTemporalEventTriggerResolutionResult

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 that you intend to apply to the task.

Discussion

Implement this method to resolve the time-based trigger to apply to the task. For apps that support reminders based on the current time, use this method to resolve the trigger information. If time-based reminders are optional, return a successful resolution when the user provides trigger information or return a notRequired() resolution when there’s no trigger information. If the intent includes some trigger information, but not enough for a successful resolution, you can ask the user to confirm or disambiguate from among the possible values.

See Also

Resolving the Intent Parameters