---
title: allowedContentTypes
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avassetresourceloadingcontentinformationrequest/allowedcontenttypes
---

# allowedContentTypes

The types of data that are accepted as a valid response for the requested resource.

## Declaration

```swift
var allowedContentTypes: [String]? { get }
```

## Discussion

Discussion This property contains an array of file format UTIs. When allowedContentTypes is non-nil, the value of contentType must be set to a value contained in allowedContentTypes or nil.

## See Also

### Configuring content information

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