Język

EmbeddedBiometricPrompt.Builder.SetAuthenticationCallback Method

Definition

Optional: Sets the authentication callback and executor.

[Android.Runtime.Register("setAuthenticationCallback", "(Ljava/util/concurrent/Executor;Landroid/hardware/biometrics/EmbeddedBiometricPrompt$AuthenticationCallback;)Landroid/hardware/biometrics/EmbeddedBiometricPrompt$Builder;", "", ApiSince=37)]
public Android.Hardware.Biometrics.EmbeddedBiometricPrompt.Builder SetAuthenticationCallback(Java.Util.Concurrent.IExecutor executor, Android.Hardware.Biometrics.EmbeddedBiometricPrompt.AuthenticationCallback callback);
[<Android.Runtime.Register("setAuthenticationCallback", "(Ljava/util/concurrent/Executor;Landroid/hardware/biometrics/EmbeddedBiometricPrompt$AuthenticationCallback;)Landroid/hardware/biometrics/EmbeddedBiometricPrompt$Builder;", "", ApiSince=37)>]
member this.SetAuthenticationCallback : Java.Util.Concurrent.IExecutor * Android.Hardware.Biometrics.EmbeddedBiometricPrompt.AuthenticationCallback -> Android.Hardware.Biometrics.EmbeddedBiometricPrompt.Builder

Parameters

executor
IExecutor

The executor to use for the authentication callback. This value cannot be null. Callback and listener events are dispatched through this Executor, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use Context.getMainExecutor(). Otherwise, provide an Executor that dispatches to an appropriate thread.

callback
EmbeddedBiometricPrompt.AuthenticationCallback

The authentication callback. This value cannot be null.

Returns

This builder. This value cannot be null.

Attributes

Remarks

Optional: Sets the authentication callback and executor.

Android reference for android.hardware.biometrics.EmbeddedBiometricPrompt.Builder.setAuthenticationCallback.

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