0f7ee51333
* Try to log to console via runOnJS * Call `console.log` * Create custom `VisionCameraScheduler` * Fix scheduler call * Call with this * Fix console setting * Move J---- to `java-bindings` * c++ style * Android: 1/2 Create custom Scheduler * Android: 2/2 Use custom Scheduler * Don't use `runOnJS`, use `__callAsync` directly
16 lines
497 B
C++
16 lines
497 B
C++
#include <jni.h>
|
|
#include <fbjni/fbjni.h>
|
|
#include "FrameProcessorRuntimeManager.h"
|
|
#include "FrameProcessorPlugin.h"
|
|
#include "CameraView.h"
|
|
#include "VisionCameraScheduler.h"
|
|
|
|
JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *) {
|
|
return facebook::jni::initialize(vm, [] {
|
|
vision::FrameProcessorRuntimeManager::registerNatives();
|
|
vision::FrameProcessorPlugin::registerNatives();
|
|
vision::CameraView::registerNatives();
|
|
vision::VisionCameraScheduler::registerNatives();
|
|
});
|
|
}
|