MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / scrollInfo

Function scrollInfo

packages/nativescript-inspector/src/index.ts:2133–2143  ·  view source on GitHub ↗
(view: any)

Source from the content-addressed store, hash-verified

2131}
2132
2133function scrollInfo(view: any): JSONObject | null {
2134 if (!isKindOf(view, "UIScrollView")) {
2135 return null;
2136 }
2137 return {
2138 contentOffset: pointValue(read(view, "contentOffset")),
2139 contentSize: sizeValue(read(view, "contentSize")),
2140 adjustedContentInset: insetsValue(read(view, "adjustedContentInset")),
2141 isScrollEnabled: Boolean(read(view, "scrollEnabled")),
2142 };
2143}
2144
2145function controlInfo(view: any): JSONObject | null {
2146 if (!isKindOf(view, "UIControl")) {

Callers 2

nativeScriptNodeMethod · 0.85
uikitNodeMethod · 0.85

Calls 5

isKindOfFunction · 0.85
pointValueFunction · 0.85
readFunction · 0.85
sizeValueFunction · 0.85
insetsValueFunction · 0.85

Tested by

no test coverage detected