obtain

Returns a cached instance if such is available otherwise a new one and sets the source.

Return

An instance.

See also


open fun obtain(root: View, virtualDescendantId: Int): AccessibilityNodeInfoCompat(source)

Returns a cached instance if such is available otherwise a new one and sets the source.

Return

An instance.

Parameters

root

The root of the virtual subtree.

virtualDescendantId

The id of the virtual descendant.

See also


Returns a cached instance if such is available otherwise a new one.

Return

An instance.


Returns a cached instance if such is available or a new one is create. The returned instance is initialized from the given info.

Return

An instance.

Parameters

info

The other info.