Table of Contents

Class AndroidBackInvokedCallback

Namespace
VpnHood.AppLogic.App.Android.Utils
Assembly
VpnHood.AppLogic.App.Android.dll

Provides a back callback for Android 13 and later, which calls an action.

public sealed class AndroidBackInvokedCallback : Object, IOnBackInvokedCallback, IJavaObject, IJavaPeerable, IDisposable
Inheritance
AndroidBackInvokedCallback
Implements

Remarks

It is a class of its own, made only on Android 13 and later: an older Android cannot load a class that implements the interface, so an activity never implements it itself.

Constructors

AndroidBackInvokedCallback(Action)

Provides a back callback for Android 13 and later, which calls an action.

public AndroidBackInvokedCallback(Action onBackInvoked)

Parameters

onBackInvoked Action

The action Back calls.

Remarks

It is a class of its own, made only on Android 13 and later: an older Android cannot load a class that implements the interface, so an activity never implements it itself.

Methods

OnBackInvoked()

Called when a back gesture has been completed and committed, or back button pressed has been released and committed.

public void OnBackInvoked()

Remarks

Called when a back gesture has been completed and committed, or back button pressed has been released and committed.

Java documentation for android.window.OnBackInvokedCallback.onBackInvoked().

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.