translate

open suspend override fun translate(processResult: BlinkIdProcessResult, inputImage: InputImage?, session: BlinkIdScanningSession): List<ScanningUxEvent>

Translates the given BlinkIdProcessResult, InputImage, and BlinkIdScanningSession into a list of ScanningUxEvent objects.

This function analyzes the current state of the scanning session and the results of the last image processing step to determine which UX events should be generated.

Return

A list of ScanningUxEvent objects representing the user experience events that should be dispatched.

Parameters

processResult

The BlinkIdProcessResult from the scanning session.

inputImage

The InputImage used for the process. Can be null.

session

The BlinkIdScanningSession that was used for the process.