T

NativeViewSnapshotNode

One view in an objc.snapshot result, which lists views in breadth-first order.

type NativeViewSnapshotNode = { … }

Members

classNamestring

The view's Objective-C class name.

depthnumber

Levels below the root, which is 0.

The view's frame in its superview's coordinates, in points.

parentnumber

The index of the parent node in the result, or -1 for the root.

textstring | null

The view's text when it has a string one, such as a UILabel's, else null.

A retained handle to the view; discard it after cell reuse or a channel change.

visibleboolean

Whether the view is not hidden, has a non-zero alpha and is in a window.