MrzScannerScreen

Shows the default Android MRZ scanner and reports the outcome through onResult.

Offers the reading methods in MrzScannerConfig.enabledMethods. Reports MrzScannerResult.Confirmed when the user accepts a reading (or at once under ReviewMode.INSTANT_RETURN), otherwise MrzScannerResult.Cancelled. It never requests the CAMERA permission; it calls MrzScannerConfig.onRequestPermission. Override its text by defining the same tessera_scanner_* string keys in your app. The keys tessera_scanner_grant_permission and tessera_scanner_permission_rationale are in the module but never read, so overriding them changes nothing.

The configuration is read when the scanner opens; changes while it is open apply the next time it opens.

The screen sends mrz.camera.frame events to the sink registered in TelemetrySinkRegistry; the default sink drops them.

Parameters

config

Options for the screen; see MrzScannerConfig.

onResult

Receives the outcome when the flow ends.