<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSFileAccessIntent",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFileAccessIntent"
  },
  "title" : "NSFileAccessIntent"
}
-->

# NSFileAccessIntent

The details of a coordinated-read or coordinated-write operation.

```
class NSFileAccessIntent
```

## Overview

Use this class when performing asynchronous operations with a file coordinator using the coordinator’s [`coordinate(with:queue:byAccessor:)`](/documentation/Foundation/NSFileCoordinator/coordinate(with:queue:byAccessor:)) method.

## Topics

### Creating a File Access Intent

[`+  readingIntentWithURL:options:`](/documentation/Foundation/NSFileAccessIntent/readingIntent(with:options:))

Returns a file access intent object for reading the given URL with the provided options.

[`+  writingIntentWithURL:options:`](/documentation/Foundation/NSFileAccessIntent/writingIntent(with:options:))

Returns a file access intent object for writing to the given URL with the provided options.

### Accessing the Current URL

[`URL`](/documentation/Foundation/NSFileAccessIntent/url)

The current URL for the item managed by the file access intent instance. (read-only)

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

### 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)