* 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
24 lines
504 B
C++
24 lines
504 B
C++
//
|
|
// Created by Marc Rousavy on 22.06.21.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include <jsi/jsi.h>
|
|
#include <jni.h>
|
|
#include <fbjni/fbjni.h>
|
|
|
|
namespace vision {
|
|
|
|
namespace JSIJNIConversion {
|
|
|
|
using namespace facebook;
|
|
|
|
jobject convertJSIValueToJNIObject(jsi::Runtime& runtime, const jsi::Value& value); // NOLINT(runtime/references)
|
|
|
|
jsi::Value convertJNIObjectToJSIValue(jsi::Runtime& runtime, const jni::local_ref<jobject>& object); // NOLINT(runtime/references)
|
|
|
|
} // namespace JSIJNIConversion
|
|
|
|
} // namespace vision
|