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).

void onPackageInstall()

void onPackageInstall(InstallCallbackInterface Callback)

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

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

Initialization status constants

SUCCESS

OpenCV initialization finished successfully

MARKET_ERROR

Google Play (Android Market) cannot be invoked

INSTALL_CANCELED

OpenCV library installation was canceled by user

INCOMPATIBLE_MANAGER_VERSION

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

INIT_FAILED

OpenCV library initialization failed