ViewGroup.FindOnBackInvokedDispatcherForChild(View, View) Method

Definition

Walk up the View hierarchy to find the nearest OnBackInvokedDispatcher.

[Android.Runtime.Register("findOnBackInvokedDispatcherForChild", "(Landroid/view/View;Landroid/view/View;)Landroid/window/OnBackInvokedDispatcher;", "GetFindOnBackInvokedDispatcherForChild_Landroid_view_View_Landroid_view_View_Handler", ApiSince=33)]
public virtual Android.Window.IOnBackInvokedDispatcher? FindOnBackInvokedDispatcherForChild (Android.Views.View child, Android.Views.View requester);
[<Android.Runtime.Register("findOnBackInvokedDispatcherForChild", "(Landroid/view/View;Landroid/view/View;)Landroid/window/OnBackInvokedDispatcher;", "GetFindOnBackInvokedDispatcherForChild_Landroid_view_View_Landroid_view_View_Handler", ApiSince=33)>]
abstract member FindOnBackInvokedDispatcherForChild : Android.Views.View * Android.Views.View -> Android.Window.IOnBackInvokedDispatcher
override this.FindOnBackInvokedDispatcherForChild : Android.Views.View * Android.Views.View -> Android.Window.IOnBackInvokedDispatcher

Parameters

child
View

The direct child of this view for which to find a dispatcher.

requester
View

The requester that will use the dispatcher. Can be the same as child.

Returns

The OnBackInvokedDispatcher from this or the nearest ancestor, or null if the view is both not attached and have no ancestor providing an OnBackInvokedDispatcher.

Implements

Attributes

Remarks

Walk up the View hierarchy to find the nearest OnBackInvokedDispatcher.

Java documentation for android.view.ViewGroup.findOnBackInvokedDispatcherForChild(android.view.View, android.view.View).

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.

Applies to