getRoot

@Nullable
open fun getRoot(): @Nullable AccessibilityNodeInfoCompat(source)

Gets the root node in the window's hierarchy.

Return

The root node.


@Nullable
open fun getRoot(prefetchingStrategy: Int): @Nullable AccessibilityNodeInfoCompat(source)

Gets the root node in the window's hierarchy.

Return

The root node.

Parameters

prefetchingStrategy

the prefetching strategy.

See also

for a description of prefetching.