Skip to main content

getUiStateKey

@microblink/blinkid-verify


@microblink/blinkid-verify / getUiStateKey

Function: getUiStateKey()

getUiStateKey(frameProcessResult): undefined | BlinkIdVerifyUiMappableKey

Determines the appropriate UI state key based on the current frame processing result and scanning settings.

This function acts as a state machine, translating the low-level analysis and completeness results into a high-level UI state that drives the user interface.

Parameters

frameProcessResult

PartialProcessResult

The current (possibly partial) result of frame processing, including image analysis and completeness.

Returns

undefined | BlinkIdVerifyUiMappableKey

The UI state key representing what should be shown to the user.