---
title: NSFileAccessIntent
framework: foundation
role: symbol
role_heading: Class
path: foundation/nsfileaccessintent
---

# NSFileAccessIntent

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

## Declaration

```swift
class NSFileAccessIntent
```

## Overview

Overview Use this class when performing asynchronous operations with a file coordinator using the coordinator’s coordinate(with:queue:byAccessor:) method.

## Topics

### Creating a File Access Intent

- [readingIntent(with:options:)](foundation/nsfileaccessintent/readingintent(with:options:).md)
- [writingIntent(with:options:)](foundation/nsfileaccessintent/writingintent(with:options:).md)

### Accessing the Current URL

- [url](foundation/nsfileaccessintent/url.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Coordinated file access

- [NSFilePresenter](foundation/nsfilepresenter.md)
- [NSFileCoordinator](foundation/nsfilecoordinator.md)
