Package-level declarations
Types
One document an InputRequest.UploadNonIdDocument step accepts. The host lets the user pick one and answers with it, in StepInput.UploadNonIdDocument.
File kind allowed for non-ID document upload. A document can accept Image, Pdf, or ImageOrPdf (both).
The card a successful EngineStepType.CardScan step read, in full: the masking the backend asks for applies only to what Engine sends it. Delivered as StepOutput.CardScan on the first StepResult showing the backend took the card; there is no separate listener.
Configuration for an Engine verification session.
A failure surfaced by Engine. The caller should not infer retry behavior from the error type alone; it should use StepResult.Failed.recoverable and StepResult.Failed.retryAction.
An Engine.startSession failure whose reason Engine can name as an error. Today that is only EngineError.UnsupportedWorkflowVersion.
Lets Engine know which of the app's Activities is in front, so it can start scanner steps from it. androidx.startup runs it when the app starts, from Engine's manifest, so an app has nothing to do.
Transient execution status of a session — what Engine is doing right now. This is a side channel for loading and progress UI only; workflow data, next-step info, blockers, and terminal outcomes all live on StepResult.
Which scanner step Engine is running, and how far it is.
How far a scanner step is.
Types of steps that Engine runs itself by launching a scanner SDK, which the app includes (see EngineError.MissingScannerSdk).
The input kind Engine expected for the current step, reported by EngineError.InvalidNextInput.
The kind of file a file field asks for. Engine takes a JPEG, PNG or PDF for either.
Description of a single form field. The host owns rendering, how errors show, file picking, and upload preparation; Engine checks the answers (see EngineError.InvalidFormInput). Each variant is answered by the matching FormFieldValue variant.
Why one submitted form value was rejected — see EngineError.InvalidFormInput.
Why Engine rejected one form value — see FormFieldError.
A kind of host-collected input: a form (StepInput.FormSubmission) or one of the two uploads.
A host-rendered step's descriptor. The host owns rendering, how errors show, and file picking; Engine checks what comes back (see EngineError.InvalidFormInput and EngineError.InvalidUploadInput).
The kinds of interactive step a host can meet in WorkflowProgress.steps. The workflow's non-interactive steps (Start, DbVer, TrustScore, End) and step types this build doesn't recognize are left out of it.
How hard Engine tries before reporting a failure.
The kinds of non-ID document the backend knows. A type added after this build shipped reads as Unknown. The host answers with the AllowedDocument itself, so Engine still sends the type the backend named, however many read as Unknown.
A runtime permission an Engine-run step requires.
How a recoverable failure can be retried.
The look of the scanner and face screens Engine runs. A null here, or a null part of it, keeps that SDK's own default light look: 2.0.0 never follows the phone's dark setting.
The fonts of the scanner and face screens. A style replaces that text's whole default style, so set its size too; a null style keeps the SDK's own. A style's color may be ignored, because the scanner screens take their text colors from ScannerColors.
Everything the SDK needs to execute a transaction the customer backend has already created.
Terminal result of a session. Carried by StepResult.Finished and returned by Session.cancel; there is no separate outcome listener.
A live, already-started session together with the first StepResult of its workflow.
The next workflow action the caller should handle.
A host-owned condition that must be resolved before Engine can run the next step.
Input passed to Session.next.
Output produced by an Engine-run step that the host may consume directly: today, only the card an EngineStepType.CardScan step read.
The full snapshot returned from Engine.startSession and every Session.next. It is the durable source of truth for transaction id, workflow, the next action, blockers, recoverable failures, and terminal outcomes.
Why a step's attempt was turned down — see EngineError.StepValidation.
A host-provided file payload for every host-rendered upload. A plain class, not a data class: it has identity equality, so the enclosing StepInput values do too — never compare upload inputs by value.
Why Engine rejected an upload — see EngineError.InvalidUploadInput.
A side of an ID document — see EngineError.InvalidUploadInput.side.
The backend's verdict. One this SDK doesn't know reads as Review.
Snapshot of the workflow's progress as known to Engine at a point in the session. Carries the data a home / progress screen needs. steps lists interactive steps only; the counts are null until the backend has sent a snapshot.