Skip to content

Logic flow

Logic flow diagram which show sample flow.

sequenceDiagram
  Mobile App->>+IDLiveDocCaptureIAD : init camera session
  Note over IDLiveDocCaptureIAD  : take photo (auto/manual)
  IDLiveDocCaptureIAD->>+Mobile App : did capture image
  Mobile App->>+IDLiveDocCaptureIAD : create IADBundle
  IDLiveDocCaptureIAD->>-Mobile App : IADBundle
  Note over Mobile App  : init network session request
  Mobile App->>+Server  : IADBundle
  Server->>-Mobile App  : Attack detection result
  Note over Mobile App  : Process result

The logic flow for using iOS Capture Library frameworks is as follows:

  1. Instantiate and configure the camera controller.
  2. Present the camera controller.
  3. Wait for the user to take the photo (automatically or manually).
  4. Handle result via delegate methods.
  5. If result is unsuccessfull (photo is not taken), process the error and dismiss the controller, or let the user retry.
  6. If result is successfull (photo is taken).
  7. Create IAD bundle and send to IAD Server.
  8. Receive the result and process it (e.g. show it in the controller UI).