ROC SDK  2.4.0
Scalable Face Recognition Software
Functions
Android

Android-only functions. More...

Functions

roc_error roc_preinitialize_android (void *JNIEnv, void *jobject)
 Inform the ROC SDK about the Java calling environment. More...
 

Detailed Description

Android-only functions.

Call roc_preinitialize_android before calling roc_initialize.

Function Documentation

◆ roc_preinitialize_android()

roc_error roc_preinitialize_android ( void *  JNIEnv,
void *  jobject 
)

Inform the ROC SDK about the Java calling environment.

Note
This function need only be called when using the Android SDK. In this case call it before calling roc_initialize. Calling this function on other operating systems is a no-op.
The Java wrapper for this function takes only one argument, the jobject Android activity. The JNIEnv is passed automatically.
Parameters
JNIEnvJNI environment.
jobjectAndroid activity.
Remarks
This function is thread-unsafe.