---
title: "resolveStatus(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/insettaskattributeintenthandling/resolvestatus(for:with:)"
---

# resolveStatus(for:with:)

Resolves the intended status of the task.

## Declaration

```swift
optional func resolveStatus(for intent: INSetTaskAttributeIntent, with completion: @escaping @Sendable (INTaskStatusResolutionResult) -> Void)
```

```swift
optional func resolveStatus(for intent: INSetTaskAttributeIntent) async -> INTaskStatusResolutionResult
```

## Parameters

- `intent`: The intent object containing 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:

## Discussion

Discussion Implement this method to resolve the task’s intended status. In most cases, you return a successful resolution with the requested status. In the event that you cannot change the status to the requested value, return a successful result from this method and use your confirmation method to report the failure.

## See Also

### Resolving the Intent Parameters

- [resolveTargetTask(for:with:)](intents/insettaskattributeintenthandling/resolvetargettask(for:with:).md)
- [resolveSpatialEventTrigger(for:with:)](intents/insettaskattributeintenthandling/resolvespatialeventtrigger(for:with:).md)
- [resolveTemporalEventTrigger(for:with:)](intents/insettaskattributeintenthandling/resolvetemporaleventtrigger(for:with:)-9bfly.md)
- [resolvePriority(for:with:)](intents/insettaskattributeintenthandling/resolvepriority(for:with:).md)
- [resolveTaskTitle(for:with:)](intents/insettaskattributeintenthandling/resolvetasktitle(for:with:).md)
- [resolveTemporalEventTrigger(for:with:)](intents/insettaskattributeintenthandling/resolvetemporaleventtrigger(for:with:)-1wr3f.md)
