AccessibilityNodeInfo.GetParent(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the parent.
[Android.Runtime.Register("getParent", "(I)Landroid/view/accessibility/AccessibilityNodeInfo;", "GetGetParent_IHandler", ApiSince=33)]
public virtual Android.Views.Accessibility.AccessibilityNodeInfo? GetParent (int prefetchingStrategy);
[<Android.Runtime.Register("getParent", "(I)Landroid/view/accessibility/AccessibilityNodeInfo;", "GetGetParent_IHandler", ApiSince=33)>]
abstract member GetParent : int -> Android.Views.Accessibility.AccessibilityNodeInfo
override this.GetParent : int -> Android.Views.Accessibility.AccessibilityNodeInfo
Parameters
- prefetchingStrategy
- Int32
the prefetching strategy.
Returns
The parent.
- Attributes
Remarks
Gets the parent.
Use prefetchingStrategy
to determine the types of nodes prefetched from the app if the requested node is not in the cache and must be retrieved by the app. The default strategy for #getParent()
is a combination of ancestor and sibling strategies. The app will prefetch until all nodes fulfilling the strategies are fetched, another node request is sent, or the maximum prefetch batch size of #MAX_NUMBER_OF_PREFETCHED_NODES
nodes is reached. To prevent interruption by another request and to force prefetching of the max batch size, use AccessibilityNodeInfo#FLAG_PREFETCH_UNINTERRUPTIBLE
.
Java documentation for android.view.accessibility.AccessibilityNodeInfo.getParent(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.