Resource Base
Table of contents

Intermediate Result APIs

Method Description
getIntermediateResultManager Returns an object, of type IntermediateResultManager, that manages intermediate results.

getIntermediateResultManager

Returns an object, of type IntermediateResultManager, that manages intermediate results.

IntermediateResultManager getIntermediateResultManager();

Return Value

An object of IntermediateResultManager.

Code Snippet

The following code snippet shows how to regisiter a IntermediateResultReceiver with the IntermediateResultManager and receive the localized barcodes.

IntermediateResultManager intermediateResultManager;
intermediateResultManager = mRouter.getIntermediateResultManager();
intermediateResultManager.addResultReceiver(new IntermediateResultReceiver() {
    @Override
    public void onLocalizedBarcodesReceived(@NonNull LocalizedBarcodesUnit unit, IntermediateResultExtraInfo info) {
        // Add code to do when localized barcodes are received.
    }    
    // You can add multiple callback methods here to monitor different types of intermediate results.
});

See also:

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article:

latest version

    Change +