EngineStatus

sealed class EngineStatus

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.

Inheritors

Types

Link copied to clipboard

Engine is talking to the backend (workflow info, submit, poll, retry — collapsed into one signal so the host can show a generic loader).

Link copied to clipboard

Engine is launching or running a scanner SDK, or submitting its result.

Link copied to clipboard
data class Terminal(val outcome: SessionOutcome) : EngineStatus

The session reached a terminal outcome (mirrors StepResult.Finished).

Link copied to clipboard
data class UploadingFile(val percentComplete: Int) : EngineStatus

Engine is uploading files: the host's, or a scan's images. A host's upload reports it only when every file's UploadFile.sizeBytes is known; otherwise it shows as CommunicatingWithBackend.

Link copied to clipboard

Engine is at a stable point, waiting for the host's next call.