OpenCV 2.4.2

org.opencv.android
Interface LoaderCallbackInterface

All Known Implementing Classes:
BaseLoaderCallback

public interface LoaderCallbackInterface

Interface for callback object in case of asynchronous initialization of OpenCV


Field Summary
static int INCOMPATIBLE_MANAGER_VERSION
          Version of OpenCV Manager Service is incompatible with this app.
static int INIT_FAILED
          OpenCV library initialization failed
static int INSTALL_CANCELED
          OpenCV library installation was canceled by user
static int MARKET_ERROR
          Google Play (Android Market) cannot be invoked
static int RESTART_REQUIRED
          OpenCV library installation via Google Play service was initialized.
static int SUCCESS
          OpenCV initialization finished successfully
 
Method Summary
 void onManagerConnected(int status)
          Callback method that is called after OpenCV library initialization
 void onPackageInstall(InstallCallbackInterface callback)
          Callback method that is called in case when package installation is needed
 

Field Detail

INCOMPATIBLE_MANAGER_VERSION

static final int INCOMPATIBLE_MANAGER_VERSION
Version of OpenCV Manager Service is incompatible with this app. Service update is needed

See Also:
Constant Field Values

INIT_FAILED

static final int INIT_FAILED
OpenCV library initialization failed

See Also:
Constant Field Values

INSTALL_CANCELED

static final int INSTALL_CANCELED
OpenCV library installation was canceled by user

See Also:
Constant Field Values

MARKET_ERROR

static final int MARKET_ERROR
Google Play (Android Market) cannot be invoked

See Also:
Constant Field Values

RESTART_REQUIRED

static final int RESTART_REQUIRED
OpenCV library installation via Google Play service was initialized. Application restart is required

See Also:
Constant Field Values

SUCCESS

static final int SUCCESS
OpenCV initialization finished successfully

See Also:
Constant Field Values
Method Detail

onManagerConnected

void onManagerConnected(int status)
Callback method that is called after OpenCV library initialization

Parameters:
status - Status of initialization. See Initialization status constants

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

Official OpenCV 2.4 Documentation