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

Method contextOnCreate

valdi/src/valdi/android/NativeBridge.cpp:433–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431 ValdiAndroid::javaObjectToLazyValueConvertible(javaEnv, componentContext, "ComponentContext");
432
433 Valdi::Ref<Valdi::ViewManagerContext> viewManagerContext;
434 if (useSnapDrawing != 0) {
435 viewManagerContext = wrapper->getRuntimeManagerWrapper()->getOrCreateSnapDrawingViewManagerContext();
436 } else {
437 viewManagerContext = wrapper->getRuntimeManagerWrapper()->getAndroidViewManagerContext();
438 }
439
440 auto context = runtime->createContext(
441 viewManagerContext, cppComponentPath, viewModelRetainedJava, componentContextRetainedJava);
442
443 auto javaContext = ValdiAndroid::fromValdiContextUserData(context->getUserData());

Callers

nothing calls this directly

Calls 2

getContextFunction · 0.70
onCreateMethod · 0.65

Tested by

no test coverage detected