MCPcopy Create free account
hub / github.com/AshampooSystems/boden / rowIndexForView

Method rowIndexForView

framework/ui/platforms/android/src/ListViewCore.cpp:22–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 }
21
22 std::optional<size_t> ListViewCore::rowIndexForView(const std::shared_ptr<View> &view) const
23 {
24 if (auto viewCore = view->core<ViewCore>()) {
25 auto non_const = const_cast<bdn::android::wrapper::NativeListView *>(&_jNativeListView);
26 int pos = non_const->getRowIndexForView(viewCore->getJView());
27
28 if (pos != -1) {
29 return pos;
30 }
31 }
32 return std::nullopt;
33 }
34
35 void ListViewCore::refreshDone() { _jNativeListView.setRefreshing(false); }
36

Callers

nothing calls this directly

Calls 1

getRowIndexForViewMethod · 0.80

Tested by

no test coverage detected