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

Function createViewFactory

valdi/src/java/com/snap/valdi/IValdiRuntime.kt:133–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131fun IValdiRuntime.loadUntypedView(bundleName: String, viewName: String, viewModel: Any? = null, componentContext: Any? = null, owner: ValdiViewOwner? = null, completion: InflationCompletion? = null): ValdiRootView {
132 val componentPath = "$bundleName/$viewName"
133 return loadUntypedView(componentPath, viewModel, componentContext, owner)
134}
135
136fun IValdiRuntime.loadUntypedView(componentPath: String, viewModel: Any? = null, componentContext: Any? = null, owner: ValdiViewOwner? = null, completion: InflationCompletion? = null): ValdiRootView {
137 val view = ValdiRootView(this.context)
138 inflateViewAsync(view, componentPath, viewModel, componentContext, owner, completion)
139 return view

Callers 1

getViewFactoryMethod · 0.85

Calls 3

LazyViewFactoryClass · 0.85
createViewFactoryMethod · 0.45
getManagerSyncMethod · 0.45

Tested by

no test coverage detected