offer

Records one decoded frame and reports whether a reading has been agreed on.

A ParseResult.Failure has no document, so it does not count and returns ConsensusVerdict.Gathering with the current lead. After a reading is confirmed, every call returns the same ConsensusVerdict.Confirmed.

Return

ConsensusVerdict.Confirmed once threshold frames agree, otherwise ConsensusVerdict.Gathering.

Parameters

decoded

the decoded frame result.