<!--
{
  "availability" : [
    "iOS: 13.0.0 - 27.0.0",
    "iPadOS: 13.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0",
    "watchOS: 6.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INAddTasksIntentHandling/resolvePriority(for:with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(pl)INAddTasksIntentHandling(im)resolvePriorityForAddTasks:withCompletion:"
  },
  "title" : "resolvePriority(for:with:)"
}
-->

# resolvePriority(for:with:)

Resolves the priority associated with the new tasks.

```
optional func resolvePriority(for intent: INAddTasksIntent, with completion: @escaping @Sendable (INTaskPriorityResolutionResult) -> Void)
```

## Parameters

`intent`

The intent object that contains 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 while implementing this method. This handler has no return value and takes the following parameter:

- resolutionResult: The object that containts the details of your proposed resolution. For successful resolutions, create a resolution object with the [`INTemporalEventTrigger`](/documentation/Intents/INTemporalEventTrigger) object that represents the trigger that you intend to use.

## Discussion

This method resolves any priorities associated with the new tasks. Use the intent object to obtain the priority information, if any, suggested by the user. If the intent does not contain any priority information, and you don’t require any, return a resolution indicating that you don’t require a value.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)