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

Method setAccessibilityId

valdi/src/valdi/runtime/Context/ViewNode.cpp:3392–3402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3390}
3391
3392void ViewNode::setOnViewCreatedCallback(Ref<ValueFunction> onViewCreatedCallback) {
3393 _onViewCreatedCallback = std::move(onViewCreatedCallback);
3394
3395 if (_onViewCreatedCallback != nullptr && hasView()) {
3396 (*_onViewCreatedCallback)();
3397 }
3398}
3399
3400void ViewNode::setOnViewDestroyedCallback(Ref<ValueFunction> onViewDestroyedCallback) {
3401 _onViewDestroyedCallback = std::move(onViewDestroyedCallback);
3402}
3403
3404void ViewNode::setOnViewChangedCallback(Ref<ValueFunction> onViewChangedCallback) {
3405 _onViewChangedCallback = std::move(onViewChangedCallback);

Callers 3

apply_accessibilityIdMethod · 0.45
reset_accessibilityIdMethod · 0.45

Calls 2

isEmptyMethod · 0.45

Tested by

no test coverage detected