Table of Contents

Class AndroidBackInvokedCallback

Namespace
VpnHood.AppLib.App.Android.Utils
Assembly
VpnHood.AppLib.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
Inherited Members

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