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:
- Instantiate and configure the camera controller.
- Present the camera controller.
- Wait for the user to take the photo (automatically or manually).
- Handle result via delegate methods.
- If result is unsuccessfull (photo is not taken), process the error and dismiss the controller, or let the user retry.
- If result is successfull (photo is taken).
- Create IAD bundle and send to IAD Server.
- Receive the result and process it (e.g. show it in the controller UI).