opencv/android/service/doc/LoaderCallbackInterface.rst

49 lines
1.3 KiB
ReStructuredText
Raw Normal View History

2012-06-21 22:50:05 +08:00
*************************
Loader Callback Interface
*************************
.. highlight:: java
.. class:: LoaderCallbackInterface
Interface for a callback object in case of asynchronous initialization of OpenCV.
2012-06-21 22:50:05 +08:00
void onManagerConnected()
-------------------------
2012-06-21 22:50:05 +08:00
.. method:: void onManagerConnected(int status)
Callback method that is called after OpenCV library initialization.
:param status: status of initialization (see "Initialization Status Constants" section below).
2012-06-21 22:50:05 +08:00
void onPackageInstall()
-----------------------
.. method:: void onPackageInstall(InstallCallbackInterface Callback)
Callback method that is called in case when package installation is needed.
2012-06-21 22:50:05 +08:00
:param callback: answer object with ``install`` and ``cancel`` methods and package description.
2012-06-21 22:50:05 +08:00
Initialization status constants
-------------------------------
.. data:: SUCCESS
OpenCV initialization finished successfully
2012-06-21 22:50:05 +08:00
.. data:: MARKET_ERROR
Google Play (Android Market) application cannot be invoked
2012-06-21 22:50:05 +08:00
.. data:: INSTALL_CANCELED
OpenCV library installation was cancelled by user
2012-06-21 22:50:05 +08:00
.. data:: INCOMPATIBLE_MANAGER_VERSION
Version of OpenCV Manager is incompatible with this app. Manager update is needed.
2012-06-21 22:50:05 +08:00
.. data:: INIT_FAILED
OpenCV library initialization failed