setInterceptFileChooserDialog

Intercept file chooser requests and transfer control to protocol clients. When file chooser interception is enabled, native file chooser dialog is not shown. Instead, a protocol event Page.fileChooserOpened is emitted.


suspend fun setInterceptFileChooserDialog(enabled: Boolean, cancel: Boolean? = null)

Intercept file chooser requests and transfer control to protocol clients. When file chooser interception is enabled, native file chooser dialog is not shown. Instead, a protocol event Page.fileChooserOpened is emitted.

Parameters

enabled

No description

cancel

If true, cancels the dialog by emitting relevant events (if any) in addition to not showing it if the interception is enabled (default: false).