<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHAssetResourceManager",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHAssetResourceManager"
  },
  "title" : "PHAssetResourceManager"
}
-->

# PHAssetResourceManager

A resource manager for the data storage underlying a Photos asset.

```
class PHAssetResourceManager
```

## Overview

An asset can have multiple underlying data resources—for example, both original and edited versions—each of which is represented by a [`PHAssetResource`](/documentation/Photos/PHAssetResource) object. Unlike the [`PHImageManager`](/documentation/Photos/PHImageManager) class, which provides and caches the primary representations of assets as thumbnails, image objects, or video objects, the asset resource manager provides direct access to these underlying data resources.

## Topics

### Getting the Asset Resource Manager

[`+  defaultManager`](/documentation/Photos/PHAssetResourceManager/default())

Returns the shared asset resource manager object.

### Requesting Resources

[`-  requestDataForAssetResource:options:dataReceivedHandler:completionHandler:`](/documentation/Photos/PHAssetResourceManager/requestData(for:options:dataReceivedHandler:completionHandler:))

Requests the underlying data for the specified asset resource, to be delivered asynchronously.

[`-  cancelDataRequest:`](/documentation/Photos/PHAssetResourceManager/cancelDataRequest(_:))

Cancels an asynchronous request.

[`-  writeDataForAssetResource:toFile:options:completionHandler:`](/documentation/Photos/PHAssetResourceManager/writeData(for:toFile:options:completionHandler:))

Requests the underlying data for the specified asset resource, to be asynchronously written to a local file.

### Constants

[`PHAssetResourceDataRequestID`](/documentation/Photos/PHAssetResourceDataRequestID)

A numeric identifier for an asynchronous asset resource loading request.

  <doc://com.apple.photokit/documentation/PhotoKit/resource-loading-request-identifiers>

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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