<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.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/AVAssetResourceLoadingContentInformationRequest/contentType",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAssetResourceLoadingContentInformationRequest(py)contentType"
  },
  "title" : "contentType"
}
-->

# contentType

The UTI that specifies the type of data contained by the requested resource.

```
var contentType: String? { get set }
```

## Discussion

Before finishing loading an [`AVAssetResourceLoadingRequest`](/documentation/AVFoundation/AVAssetResourceLoadingRequest) instance, if its [`contentInformationRequest`](/documentation/AVFoundation/AVAssetResourceLoadingRequest/contentInformationRequest) property is  not `nil`, set the value of this property to a UTI indicating the type of data contained by the requested resource.

When responding to an `AVAssetResourceLoadingRequest` for a FairPlay Streaming key, only set `contentType` to [`AVStreamingKeyDeliveryContentKeyType`](/documentation/AVFoundation/AVStreamingKeyDeliveryContentKeyType), [`AVStreamingKeyDeliveryPersistentContentKeyType`](/documentation/AVFoundation/AVStreamingKeyDeliveryPersistentContentKeyType), or `nil`. The value of contentType must be contained in the [`allowedContentTypes`](/documentation/AVFoundation/AVAssetResourceLoadingContentInformationRequest/allowedContentTypes) property or `nil`.

---

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)