---
title: contentType
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avassetresourceloadingcontentinformationrequest/contenttype
---

# contentType

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

## Declaration

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

## Discussion

Discussion Before finishing loading an AVAssetResourceLoadingRequest instance, if its 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, AVStreamingKeyDeliveryPersistentContentKeyType, or nil. The value of contentType must be contained in the allowedContentTypes property or nil.

## See Also

### Configuring content information

- [allowedContentTypes](avfoundation/avassetresourceloadingcontentinformationrequest/allowedcontenttypes.md)
- [contentLength](avfoundation/avassetresourceloadingcontentinformationrequest/contentlength.md)
- [isByteRangeAccessSupported](avfoundation/avassetresourceloadingcontentinformationrequest/isbyterangeaccesssupported.md)
- [renewalDate](avfoundation/avassetresourceloadingcontentinformationrequest/renewaldate.md)
- [isEntireLengthAvailableOnDemand](avfoundation/avassetresourceloadingcontentinformationrequest/isentirelengthavailableondemand.md)
