<!--
{
  "availability" : [
    "iOS: 11.0.0 - 27.0.0",
    "iPadOS: 11.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0",
    "watchOS: 4.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INTask",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INTask"
  },
  "title" : "INTask"
}
-->

# INTask

An individual task the user needs to complete.

```
class INTask
```

## Overview

Use task objects to represent tasks for the user to complete. Each task object contains a description of the task, its current completion state, and any trigger conditions to remind the user to complete the task.

## Topics

### Initializing a Task Object

[`-  initWithTitle:status:taskType:spatialEventTrigger:temporalEventTrigger:createdDateComponents:modifiedDateComponents:identifier:priority:`](/documentation/Intents/INTask/init(title:status:taskType:spatialEventTrigger:temporalEventTrigger:createdDateComponents:modifiedDateComponents:identifier:priority:))

Initializes a task object with the specified content and triggers.

[`-  initWithTitle:status:taskType:spatialEventTrigger:temporalEventTrigger:createdDateComponents:modifiedDateComponents:identifier:`](/documentation/Intents/INTask/init(title:status:taskType:spatialEventTrigger:temporalEventTrigger:createdDateComponents:modifiedDateComponents:identifier:))

Initializes a task object with the specified content and triggers.

### Getting the Task Content

[`title`](/documentation/Intents/INTask/title)

The text that describes the task.

### Getting the Task Completion Status

[`status`](/documentation/Intents/INTask/status)

The current completion state of the task.

[`INTaskStatus`](/documentation/Intents/INTaskStatus)

Constants indicating the completion state of a task.

### Getting the Event Triggers

[`temporalEventTrigger`](/documentation/Intents/INTask/temporalEventTrigger)

A time-based trigger that reminds the user to complete the task.

[`spatialEventTrigger`](/documentation/Intents/INTask/spatialEventTrigger)

A location-based trigger that reminds the user to complete the task.

### Getting the Modification Dates

[`createdDateComponents`](/documentation/Intents/INTask/createdDateComponents)

The initial creation date of the task.

[`modifiedDateComponents`](/documentation/Intents/INTask/modifiedDateComponents)

The date on which the intent updated the task.

### Getting the Task Type

[`taskType`](/documentation/Intents/INTask/taskType)

Information about the behavior of the task in your app.

[`INTaskType`](/documentation/Intents/INTaskType)

Constants indicating how the task behaves.

### Identifying the Task

[`identifier`](/documentation/Intents/INTask/identifier)

The unique identifier that your app uses to identify the task.

### Identifying the Task Priority

[`priority`](/documentation/Intents/INTask/priority)

The priority for the task.

## Relationships

### Conforms To

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)