Compartilhar via


ConfirmationPrompt.PresentPrompt(IExecutor, ConfirmationCallback) Method

Definition

Requests a confirmation prompt to be presented to the user.

[Android.Runtime.Register("presentPrompt", "(Ljava/util/concurrent/Executor;Landroid/security/ConfirmationCallback;)V", "GetPresentPrompt_Ljava_util_concurrent_Executor_Landroid_security_ConfirmationCallback_Handler", ApiSince=28)]
public virtual void PresentPrompt (Java.Util.Concurrent.IExecutor executor, Android.Security.ConfirmationCallback callback);
[<Android.Runtime.Register("presentPrompt", "(Ljava/util/concurrent/Executor;Landroid/security/ConfirmationCallback;)V", "GetPresentPrompt_Ljava_util_concurrent_Executor_Landroid_security_ConfirmationCallback_Handler", ApiSince=28)>]
abstract member PresentPrompt : Java.Util.Concurrent.IExecutor * Android.Security.ConfirmationCallback -> unit
override this.PresentPrompt : Java.Util.Concurrent.IExecutor * Android.Security.ConfirmationCallback -> unit

Parameters

executor
IExecutor

the executor identifying the thread that will receive the callback.

callback
ConfirmationCallback

the callback to use when the prompt is done showing.

Attributes

Remarks

Requests a confirmation prompt to be presented to the user.

When the prompt is no longer being presented, one of the methods in ConfirmationCallback is called on the supplied callback object.

Confirmation prompts may not be available when accessibility services are running so this may fail with a ConfirmationNotAvailableException exception even if #isSupported returns true.

Java documentation for android.security.ConfirmationPrompt.presentPrompt(java.util.concurrent.Executor, android.security.ConfirmationCallback).

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