IJsDialogsPromptHandler Property |
Namespace: DotNetBrowser.Browser.Dialogs
IHandler<PromptParameters, PromptResponse> PromptHandler { get; set; }
Exception | Condition |
---|---|
ObjectDisposedException | The IBrowser has already been disposed. |
ConnectionClosedException | The connection to the Chromium engine is closed. |
The passed PromptParameters object contains the text of the prompt message and the default response text. You can use this information to display standard modal dialog to obtain a prompt response from user. Please note that it is not necessary to display a dialog in this callback.
Use the SubmitText(String) method to close the dialog and pass the text value passed as a parameter to the engine.
Use the Cancel method to cancel the dialog.
If the callback throws an exception, the Cancel method will be used.