### Navigation

- index
- next |
- previous |
- OpenCV 2.4.6.1 documentation »
- OpenCV4Android Reference »
- Android OpenCV Manager »

# 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

## Help and Feedback

You did not find what you were looking for?

- Ask a question on the Q&A forum.
- If you think something is missing or wrong in the documentation, please file a bug report.

### Navigation

- index
- next |
- previous |
- OpenCV 2.4.6.1 documentation »
- OpenCV4Android Reference »
- Android OpenCV Manager »