parent
a07e33609b
commit
396e4517ff
12 changed files with 78 additions and 78 deletions
@ -1,21 +1,21 @@ |
||||
package org.opencv.android; |
||||
|
||||
/** |
||||
* Installation callback interface
|
||||
* Installation callback interface. |
||||
*/ |
||||
public interface InstallCallbackInterface |
||||
{ |
||||
/** |
||||
* Target package name |
||||
* @return Return target package name |
||||
* Target package name. |
||||
* @return Return target package name. |
||||
*/ |
||||
public String getPackageName(); |
||||
/** |
||||
* Installation of package is approved |
||||
* Installation is approved. |
||||
*/ |
||||
public void install(); |
||||
/** |
||||
* Installation canceled |
||||
* Installation is canceled. |
||||
*/ |
||||
public void cancel(); |
||||
}; |
||||
|
@ -1,44 +1,44 @@ |
||||
package org.opencv.android; |
||||
|
||||
/** |
||||
* Interface for callback object in case of asynchronous initialization of OpenCV |
||||
* Interface for callback object in case of asynchronous initialization of OpenCV. |
||||
*/ |
||||
public interface LoaderCallbackInterface |
||||
{ |
||||
/** |
||||
* OpenCV initialization finished successfully |
||||
* OpenCV initialization finished successfully. |
||||
*/ |
||||
static final int SUCCESS = 0; |
||||
/** |
||||
* OpenCV library installation via Google Play service was initialized. Application restart is required |
||||
* OpenCV library installation via Google Play service has been initialized. Restart the application. |
||||
*/ |
||||
static final int RESTART_REQUIRED = 1; |
||||
/** |
||||
* Google Play (Android Market) cannot be invoked |
||||
* Google Play Market cannot be invoked. |
||||
*/ |
||||
static final int MARKET_ERROR = 2; |
||||
/** |
||||
* OpenCV library installation was canceled by user |
||||
* OpenCV library installation has been canceled by user. |
||||
*/ |
||||
static final int INSTALL_CANCELED = 3; |
||||
/** |
||||
* Version of OpenCV Manager Service is incompatible with this app. Service update is needed |
||||
* This version of OpenCV Manager Service is incompatible with the app. Possibly, a service update is required. |
||||
*/ |
||||
static final int INCOMPATIBLE_MANAGER_VERSION = 4; |
||||
/** |
||||
* OpenCV library initialization failed |
||||
* OpenCV library initialization failed. |
||||
*/ |
||||
static final int INIT_FAILED = 0xff; |
||||
|
||||
/** |
||||
* Callback method that is called after OpenCV library initialization |
||||
* @param status Status of initialization. See Initialization status constants |
||||
* This callback method is called after OpenCV library initialization. |
||||
* @param status Status of initialization (see Initialization status constants). |
||||
*/ |
||||
public void onManagerConnected(int status); |
||||
|
||||
/** |
||||
* Callback method that is called in case when package installation is needed |
||||
* @param callback Answer object with approve and cancel methods and package description |
||||
* This callback method is called in case the package installation is needed. |
||||
* @param callback Answer object with approve and cancel methods and the package description. |
||||
*/ |
||||
public void onPackageInstall(InstallCallbackInterface callback); |
||||
}; |
||||
|
@ -1,33 +1,33 @@ |
||||
package org.opencv.engine; |
||||
|
||||
/** |
||||
* Class provides Java interface to OpenCV Engine Service. Is synchronous with native OpenCVEngine class. |
||||
* Class provides a Java interface for OpenCV Engine Service. It's synchronous with native OpenCVEngine class. |
||||
*/ |
||||
interface OpenCVEngineInterface |
||||
{ |
||||
/** |
||||
* @return Return service version |
||||
* @return Returns service version. |
||||
*/ |
||||
int getEngineVersion(); |
||||
|
||||
/** |
||||
* Find installed OpenCV library |
||||
* @param OpenCV version |
||||
* @return Return path to OpenCV native libs or empty string if OpenCV was not found |
||||
* Finds an installed OpenCV library. |
||||
* @param OpenCV version. |
||||
* @return Returns path to OpenCV native libs or an empty string if OpenCV can not be found. |
||||
*/ |
||||
String getLibPathByVersion(String version); |
||||
|
||||
/** |
||||
* Try to install defined version of OpenCV from Google Play (Android Market). |
||||
* @param OpenCV version |
||||
* @return Return true if installation was successful or OpenCV package has been already installed |
||||
* Tries to install defined version of OpenCV from Google Play Market. |
||||
* @param OpenCV version. |
||||
* @return Returns true if installation was successful or OpenCV package has been already installed. |
||||
*/ |
||||
boolean installVersion(String version); |
||||
|
||||
/** |
||||
* Return list of libraries in loading order separated by ";" symbol |
||||
* @param OpenCV version |
||||
* @return Return OpenCV libraries names separated by symbol ";" in loading order |
||||
* Returns list of libraries in loading order, separated by semicolon. |
||||
* @param OpenCV version. |
||||
* @return Returns names of OpenCV libraries, separated by semicolon. |
||||
*/ |
||||
String getLibraryList(String version); |
||||
} |
Loading…
Reference in new issue