---
title: "requestDocument(_:)"
framework: proximityreader
role: symbol
role_heading: Instance Method
path: "proximityreader/mobiledocumentreadersession/requestdocument(_:)"
---

# requestDocument(_:)

Presents a sheet to read a mobile document and returns the relevant response.

## Declaration

```swift
@discardableResult final func requestDocument<Request>(_ request: Request) async throws -> Request.Response where Request : MobileDocumentRequest
```

## Parameters

- `request`: The mobile document request.

## Mentioned in

Adopting the Verifier API in your iPhone app

## Return Value

Return Value A Response if the request was successful.

## Discussion

Discussion Call this method to begin requesting data contained in a mobile document. This method displays a system-provided sheet with instructions on what the mobile document holder needs to do. This UI remains onscreen until the system reads the person’s mobile document, you cancel the task, or an error occurs. note: This method throws a MobileDocumentReaderError if a mobile document request error occurs.
