2012-06-21 22:50:05 +08:00
|
|
|
*************************
|
|
|
|
Loader Callback Interface
|
|
|
|
*************************
|
|
|
|
|
|
|
|
.. highlight:: java
|
|
|
|
.. class:: LoaderCallbackInterface
|
|
|
|
|
2012-09-14 15:10:53 +08:00
|
|
|
Interface for a callback object in case of asynchronous initialization of OpenCV.
|
2012-06-21 22:50:05 +08:00
|
|
|
|
|
|
|
void onManagerConnected()
|
2012-08-07 21:27:48 +08:00
|
|
|
-------------------------
|
2012-06-21 22:50:05 +08:00
|
|
|
|
|
|
|
.. method:: void onManagerConnected(int status)
|
|
|
|
|
2012-09-14 15:10:53 +08:00
|
|
|
Callback method that is called after OpenCV Library initialization.
|
2012-06-21 22:50:05 +08:00
|
|
|
|
2012-09-14 15:10:53 +08:00
|
|
|
:param status: status of initialization (see Initialization Status Constants).
|
2012-06-21 22:50:05 +08:00
|
|
|
|
|
|
|
void onPackageInstall()
|
|
|
|
-----------------------
|
|
|
|
|
|
|
|
.. method:: void onPackageInstall(InstallCallbackInterface Callback)
|
|
|
|
|
2012-09-14 15:10:53 +08:00
|
|
|
Callback method that is called in case when package installation is needed.
|
2012-06-21 22:50:05 +08:00
|
|
|
|
2012-09-14 15:10:53 +08:00
|
|
|
:param callback: answer object with approve and cancel methods and package description.
|
2012-06-21 22:50:05 +08:00
|
|
|
|
|
|
|
Initialization status constants
|
|
|
|
-------------------------------
|
|
|
|
|
|
|
|
.. data:: SUCCESS
|
|
|
|
|
2012-10-09 14:33:26 +08:00
|
|
|
OpenCV initialization finished successfully
|
2012-06-21 22:50:05 +08:00
|
|
|
|
|
|
|
.. data:: MARKET_ERROR
|
|
|
|
|
|
|
|
Google Play (Android Market) cannot be invoked
|
|
|
|
|
|
|
|
.. data:: INSTALL_CANCELED
|
|
|
|
|
|
|
|
OpenCV library installation was canceled by user
|
|
|
|
|
|
|
|
.. data:: INCOMPATIBLE_MANAGER_VERSION
|
|
|
|
|
|
|
|
Version of OpenCV Manager Service is incompatible with this app. Service update is needed
|
|
|
|
|
|
|
|
.. data:: INIT_FAILED
|
|
|
|
|
|
|
|
OpenCV library initialization failed
|