MCPcopy Create free account
hub / github.com/Snapchat/Valdi / waitUntilAllUpdatesCompleted

Method waitUntilAllUpdatesCompleted

valdi/src/valdi/android/NativeBridge.cpp:774–790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

772 return;
773 }
774
775 if (action == kActionScrollByOnePage) {
776 auto animated = static_cast<bool>(param1);
777 auto scrollDirection = static_cast<Valdi::ScrollDirection>(param2);
778 bool didScroll =
779 viewNode->scrollByOnePage(viewTransactionScope, scrollDirection, animated, nullptr, nullptr);
780 handled = didScroll ? 1 : 0;
781 return;
782 }
783 });
784
785 return handled;
786}
787
788void ValdiAndroid::NativeBridge::waitUntilAllUpdatesCompleted( // NOLINT
789 fbjni::alias_ref<fbjni::JClass> /* clazz */, // NOLINT
790 jlong contextHandle,
791 jobject callback,
792 jboolean shouldFlushRenderRequests) {
793 auto context = getContext(contextHandle);

Callers 1

Calls 5

getContextFunction · 0.70
JavaEnvClass · 0.50
getFunctionRefMethod · 0.45

Tested by

no test coverage detected