ConfirmationPrompt.PresentPrompt(IExecutor, ConfirmationCallback) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
請求向使用者呈現確認提示。
[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
參數
- executor
- IExecutor
執行者識別將接收回撥的執行緒。
- callback
- ConfirmationCallback
提示顯示完成後使用的回調。
- 屬性
備註
請求向使用者呈現確認提示。
當提示不再呈現時,會呼叫其中一種方法 ConfirmationCallback ,針對所提供的回調物件。
當無障礙服務執行時,確認提示可能無法使用,因此即使返回 true,也可能失敗並有ConfirmationNotAvailableException例外#isSupported。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。