connectDecideDestination

fun connectDecideDestination(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (suggestedFilename: String) -> Boolean): <Error class: unknown class>

This signal is emitted after response is received to decide a destination for the download using webkit_download_set_destination(). If this signal is not handled, the file will be downloaded to %G_USER_DIRECTORY_DOWNLOAD directory using @suggested_filename.

Since 2.40, you may handle this signal asynchronously by returning true without calling webkit_download_set_destination(). This indicates intent to eventually call webkit_download_set_destination(). In this case, the download will not proceed until the destination is set or cancelled with webkit_download_cancel().

Parameters

connectFlags

A combination of ConnectFlags

handler

the Callback to connect. Params: suggestedFilename the filename suggested for the download. Returns true to stop other handlers from being invoked for the event, or false to propagate the event further.