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

Function sGetRuntimeAttachedObject

valdi/src/valdi/android/NativeBridge.cpp:108–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108::djinni::LocalRef<jobject> sGetRuntimeAttachedObject(Valdi::Runtime* runtime) {
109 auto* runtimeListener = dynamic_cast<ValdiAndroid::RuntimeListener*>(runtime->getListener().get());
110 if (runtimeListener == nullptr) {
111 return ::djinni::LocalRef<jobject>();
112 }
113
114 return runtimeListener->getAttachedObject().get();
115}
116
117// NOLINTNEXTLINE
118jint ValdiAndroid::NativeBridge::getBuildOptions(fbjni::alias_ref<fbjni::JClass> /* clazz */) {

Calls 3

getAttachedObjectMethod · 0.80
getMethod · 0.65
getListenerMethod · 0.45

Tested by

no test coverage detected