prepare(using:)
Configures the device to read mobile documents.
Declaration
final func prepare(using token: MobileDocumentReader.Token? = nil) async throws -> MobileDocumentReaderSessionParameters
- token:
An optional reader token generated from your server.
Mentioned in
Return Value
MobileDocumentReaderSession when successful.
Discussion
This method prepares the device for mobile document reading.
This method returns a MobileDocumentReaderSession object, which you use to read mobile documents.
After calling this method, there are three possible scenarios:
The method returns an existing MobileDocumentReaderSession immediately if that session is still valid.
The method retrieves and returns a new MobileDocumentReaderSession from the server.
This method throws a MobileDocumentReaderError if a problem occurs.