(view: any)
| 2143 | } |
| 2144 | |
| 2145 | function controlInfo(view: any): JSONObject | null { |
| 2146 | if (!isKindOf(view, "UIControl")) { |
| 2147 | return null; |
| 2148 | } |
| 2149 | return { |
| 2150 | controlState: numberValue(read(view, "state")), |
| 2151 | controlEvents: numberValue(read(view, "allControlEvents")), |
| 2152 | isSelected: Boolean(read(view, "selected")), |
| 2153 | isHighlighted: Boolean(read(view, "highlighted")), |
| 2154 | actions: actionsFor(view), |
| 2155 | }; |
| 2156 | } |
| 2157 | |
| 2158 | function actionsFor(target: any): string[] { |
| 2159 | const native = nativeTarget(target); |
no test coverage detected