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

# AVAssetResourceLoadingRequest

An object that encapsulates information about a resource request from a resource loader object.

```
class AVAssetResourceLoadingRequest
```

## Overview

When an [`AVURLAsset`](/documentation/AVFoundation/AVURLAsset) object needs help loading a resource, it asks its [`AVAssetResourceLoader`](/documentation/AVFoundation/AVAssetResourceLoader) object to assist. The resource loader encapsulates the request information by creating an instance of this object, which it then hands to its delegate object for processing. The delegate uses the information in this object to perform the request and report on the success or failure of the operation.

## Topics

### Accessing the request data

[`request`](/documentation/AVFoundation/AVAssetResourceLoadingRequest/request)

The URL request object for the resource.

[`requestor`](/documentation/AVFoundation/AVAssetResourceLoadingRequest/requestor)

The asset resource requestor that made the request.

[`contentInformationRequest`](/documentation/AVFoundation/AVAssetResourceLoadingRequest/contentInformationRequest)

The information for a requested resource.

[`dataRequest`](/documentation/AVFoundation/AVAssetResourceLoadingRequest/dataRequest)

The range of requested resource data.

[`redirect`](/documentation/AVFoundation/AVAssetResourceLoadingRequest/redirect)

An URL request instance if the loading request was redirected.

[`streamingContentKeyRequestData(forApp:contentIdentifier:options:)`](/documentation/AVFoundation/AVAssetResourceLoadingRequest/streamingContentKeyRequestData(forApp:contentIdentifier:options:))

Obtains key request data for a specific combination of application and content.

[`persistentContentKey(fromKeyVendorResponse:options:)`](/documentation/AVFoundation/AVAssetResourceLoadingRequest/persistentContentKey(fromKeyVendorResponse:options:))

Obtains a persistable content key from a context.

[`AVAssetResourceLoadingRequestStreamingContentKeyRequestRequiresPersistentKey`](/documentation/AVFoundation/AVAssetResourceLoadingRequestStreamingContentKeyRequestRequiresPersistentKey)

Specifies whether the content key request requires a persistable key to be returned from the key vendor.

### Reporting the result of the request

[`response`](/documentation/AVFoundation/AVAssetResourceLoadingRequest/response)

The URL response for the loading request.

[`finishLoading()`](/documentation/AVFoundation/AVAssetResourceLoadingRequest/finishLoading())

Causes the receiver to treat the processing of the request as complete.

[`isCancelled`](/documentation/AVFoundation/AVAssetResourceLoadingRequest/isCancelled)

A Boolean value that indicates whether the request has been cancelled.

[`finishLoading(with:)`](/documentation/AVFoundation/AVAssetResourceLoadingRequest/finishLoading(with:))

Causes the receiver to handle the failure to load a resource for which a resource loader’s delegate took responsibility.

[`isFinished`](/documentation/AVFoundation/AVAssetResourceLoadingRequest/isFinished)

A Boolean value that indicates whether loading of the resource has finished.

[`finishLoading(with:data:redirect:)`](/documentation/AVFoundation/AVAssetResourceLoadingRequest/finishLoading(with:data:redirect:))

Causes the receiver to finish loading a resource for which a resource loader’s delegate took responsibility .



---

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)