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

Method getJSRuntime

valdi/src/java/com/snap/valdi/ValdiRuntime.kt:247–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245
246 override fun runOnJsThread(attribution: String, runnable: Runnable) {
247 native.callOnJsThread(false, attribution, runnable)
248 }
249
250 override fun registerNativeModuleFactory(moduleFactory: ModuleFactory) {
251 native.registerNativeModuleFactory(moduleFactory)
252 }
253
254 override fun unloadAllJsModules() {
255 native.unloadAllJsModules()
256 }
257
258 override fun <T : View> registerGlobalAttributesBinder(attributesBinder: AttributesBinder<T>) {
259 manager?.registerGlobalAttributesBinder(attributesBinder)
260 }

Callers 2

createScopedJSRuntimeMethod · 0.45
getWorkerMethod · 0.45

Calls 1

ValdiJSRuntimeImplClass · 0.85

Tested by

no test coverage detected