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

Function accessibilityInfo

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

Source from the content-addressed store, hash-verified

2100}
2101
2102function accessibilityInfo(view: any): JSONObject {
2103 return {
2104 identifier: stringValue(read(view, "accessibilityIdentifier")),
2105 label: stringValue(read(view, "accessibilityLabel")),
2106 value: stringValue(read(view, "accessibilityValue")),
2107 hint: stringValue(read(view, "accessibilityHint")),
2108 traits: numberValue(read(view, "accessibilityTraits")),
2109 isElement: Boolean(read(view, "isAccessibilityElement")),
2110 };
2111}
2112
2113function textValue(view: any): string {
2114 if (

Callers 5

nativeScriptNodeMethod · 0.85
uikitNodeMethod · 0.85
uikitFrameLabelFunction · 0.85
tabBarControlLabelFunction · 0.85

Calls 3

stringValueFunction · 0.85
readFunction · 0.85
numberValueFunction · 0.85

Tested by

no test coverage detected