| 39 | } |
| 40 | |
| 41 | bool JavaChartBridgeCallBack::InitClass(JNIEnv *env) { |
| 42 | if (invokeCallbackMethod_ != nullptr) { |
| 43 | return true; |
| 44 | } |
| 45 | F2_LOG_I("#F2ChartBridge", " %s ", "InitClass"); |
| 46 | if (env == nullptr || nativeBridgeObject_ == nullptr) { |
| 47 | return false; |
| 48 | } |
| 49 | jclass bridgeCls = env->GetObjectClass(nativeBridgeObject_->obj()); |
| 50 | invokeCallbackMethod_ = env->GetMethodID(bridgeCls, "nInvokeCallback", |
| 51 | "(Ljava/lang/String;)V"); |
| 52 | if (HasException(env)) { |
| 53 | return false; |
| 54 | } |
| 55 | return true; |
| 56 | } |
nothing calls this directly
no test coverage detected