EmbeddedBiometricPrompt.AuthenticationCallback.OnBackPressed Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.