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

Method getView

valdi/src/java/com/snap/valdi/context/ValdiContext.kt:186–188  ·  view source on GitHub ↗

* Returns the view given its id. If you manually specified a view id using id="someId", * you will be able to get that view using getView("someId"). * Views are indexed, so this operation is O(1) */

Source from the content-addressed store, hash-verified

184 * Views are indexed, so this operation is O(1)
185 */
186 fun getView(id: String): View? {
187 return native.getView(id)?.get()
188 }
189
190 /**
191 * Perform a FlexBox layout calculation using the given max width and height.

Callers 1

onAssetChangedMethod · 0.45

Calls 1

getMethod · 0.65

Tested by

no test coverage detected