Table Of Contents

Previous topic

Base Loader Callback Interface Implementation

Next topic

Install Callback Interface

Loader Callback Interface

class LoaderCallbackInterface

Interface for a callback object in case of asynchronous initialization of OpenCV.

void onManagerConnected()

void onManagerConnected(int status)

Callback method that is called after OpenCV library initialization.

Parameters:status – status of initialization (see “Initialization Status Constants” section below).

void onPackageInstall()

void onPackageInstall(InstallCallbackInterface Callback)

Callback method that is called in case when package installation is needed.

Parameters:callback – answer object with install and cancel methods and package description.

Initialization status constants

SUCCESS

OpenCV initialization finished successfully

MARKET_ERROR

Google Play (Android Market) application cannot be invoked

INSTALL_CANCELED

OpenCV library installation was cancelled by user

INCOMPATIBLE_MANAGER_VERSION

Version of OpenCV Manager is incompatible with this app. Manager update is needed.

INIT_FAILED

OpenCV library initialization failed