<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ProximityReader",
  "identifier" : "/documentation/ProximityReader/MobileDocumentReader",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "ProximityReader"
    ],
    "preciseIdentifier" : "s:15ProximityReader014MobileDocumentB0C"
  },
  "title" : "MobileDocumentReader"
}
-->

# MobileDocumentReader

An object for configuring mobile document reading on the current device.

```
final class MobileDocumentReader
```

## Overview

After creating the `MobileDocumentReader` object, call [`prepare(using:)`](/documentation/ProximityReader/MobileDocumentReader/prepare(using:))
to prepare the device for mobile document reading.
Use the returned [`MobileDocumentReaderSession`](/documentation/ProximityReader/MobileDocumentReaderSession) object to read mobile documents.

You can optionally display your brand’s name and logo during a mobile document read.
To do this, your server needs to generate a reader token, then pass the token as an argument
to the [`prepare(using:)`](/documentation/ProximityReader/MobileDocumentReader/prepare(using:)) method.

## Topics

### Creating a mobile document reader

[`init()`](/documentation/ProximityReader/MobileDocumentReader/init())

Creates a mobile document reader.

### Getting the feature availability

[`static var isSupported: Bool`](/documentation/ProximityReader/MobileDocumentReader/isSupported)

A Boolean value that indicates whether the device supports mobile document reading.

### Preparing the device for reading mobile documents

[`func prepare(using: MobileDocumentReader.Token?) async throws -> MobileDocumentReaderSession`](/documentation/ProximityReader/MobileDocumentReader/prepare(using:))

Configures the device to read mobile documents.

[`struct Token`](/documentation/ProximityReader/MobileDocumentReader/Token)

A reader token generated by your server.

### Retrieving the reader configuration

[`var configuration: MobileDocumentReader.Configuration`](/documentation/ProximityReader/MobileDocumentReader/configuration-swift.property)

The configuration of the mobile document reader.

[`struct Configuration`](/documentation/ProximityReader/MobileDocumentReader/Configuration-swift.struct)

A type that represents the configuration of the mobile document reader.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)