---
title: allowedDocumentTypes
framework: proximityreader
role: symbol
role_heading: Instance Property
path: proximityreader/mobiledocumentdisplayrequest/options-swift.struct/alloweddocumenttypes
---

# allowedDocumentTypes

The allowed document types of the mobile document request.

## Declaration

```swift
var allowedDocumentTypes: [MobileDocumentDisplayRequest.Options.DocumentType]
```

## Discussion

Discussion note: A request isn’t considered valid if the list of allowed document types is empty or contains duplicates. If you call requestDocument(_:) with an invalid request, the framework throws an MobileDocumentReaderError.invalidRequest error.
