Läs på engelska

Dela via


View.FindOnBackInvokedDispatcher Method

Definition

Walk up the View hierarchy to find the nearest OnBackInvokedDispatcher.

C#
[Android.Runtime.Register("findOnBackInvokedDispatcher", "()Landroid/window/OnBackInvokedDispatcher;", "", ApiSince=33)]
public Android.Window.IOnBackInvokedDispatcher? FindOnBackInvokedDispatcher();

Returns

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

Attributes

Remarks

Walk up the View hierarchy to find the nearest OnBackInvokedDispatcher.

Java documentation for android.view.View.findOnBackInvokedDispatcher().

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

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35