<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ProximityReader",
  "identifier" : "/documentation/ProximityReader/MobileDocumentReaderSession/requestDocument(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ProximityReader"
    ],
    "preciseIdentifier" : "s:15ProximityReader014MobileDocumentB7SessionC07requestD0y8ResponseQzxYaKAA0cD7RequestRzlF"
  },
  "title" : "requestDocument(_:)"
}
-->

# requestDocument(_:)

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

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

## Parameters

`request`

The mobile document request.

## Return Value

A [`Response`](/documentation/ProximityReader/MobileDocumentRequest/Response) if the request was successful.

## 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.

> Throws: This method throws a ``doc://com.apple.ProximityReader/documentation/ProximityReader/MobileDocumentReaderError`` if a mobile document request error occurs.

---

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)