* Class: snapchat_valdi_nativebridge_ValdiNativeBridge * Method: callJSFunction * Signature: (JJLjava/lang/String;[Ljava/lang/Object;)V */
| 568 | auto context = getContext(contextHandle); |
| 569 | if (context == nullptr) { |
| 570 | return; |
| 571 | } |
| 572 | |
| 573 | auto javaEnv = ValdiAndroid::JavaEnv(); |
| 574 | context->setViewModel(ValdiAndroid::javaObjectToLazyValueConvertible(javaEnv, viewModel, "ViewModel")); |
| 575 | } |
| 576 | |
| 577 | /* |
| 578 | * Class: snapchat_valdi_nativebridge_ValdiNativeBridge |
| 579 | * Method: callJSFunction |
| 580 | * Signature: (JJLjava/lang/String;[Ljava/lang/Object;)V |
| 581 | */ |
| 582 | void ValdiAndroid::NativeBridge::callJSFunction( // NOLINT |
| 583 | fbjni::alias_ref<fbjni::JClass> /* clazz */, // NOLINT |
| 584 | jlong runtimeHandle, |
| 585 | jlong contextHandle, |
| 586 | jstring jsString, |
| 587 | fbjni::alias_ref<fbjni::JArrayClass<jobject>> jsParameters) { // NOLINT |
| 588 | auto* runtime = getRuntime(runtimeHandle); |
| 589 | auto context = getContext(contextHandle); |
| 590 | |
| 591 | if (context == nullptr || runtime == nullptr) { |
| 592 | return; |
nothing calls this directly
no test coverage detected