Language

EmbeddedBiometricPrompt.AuthenticationCallback.OnBackPressed Method

Definition

Called when the user triggers a back gesture or back key press.

[Android.Runtime.Register("onBackPressed", "()V", "GetOnBackPressedHandler", ApiSince=37)]
public virtual void OnBackPressed();
[<Android.Runtime.Register("onBackPressed", "()V", "GetOnBackPressedHandler", ApiSince=37)>]
abstract member OnBackPressed : unit -> unit
override this.OnBackPressed : unit -> unit
Attributes

Remarks

Called when the user triggers a back gesture or back key press.

Note that when a back gesture is triggered, the prompt is automatically dismissed and the authentication session is terminated. Unlike standard BiometricPrompt, this callback is invoked directly instead of onAuthenticationError(int,CharSequence) with BiometricPrompt.BIOMETRIC_ERROR_USER_CANCELED.

Android reference for android.hardware.biometrics.EmbeddedBiometricPrompt.AuthenticationCallback.onBackPressed.

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