简体   繁体   中英

How to Disable Downloading in Chromium CEF3

How to Disable Downloading in Chromium CEF3? I looked in the event onBeforeDownload but can't find a thing. All the parameters are constant. If I don't put any code in it will still continue to download. Thanks in advance

By default, all downloads are cancelled : https://magpcss.org/ceforum/apidocs3/projects/(default)/CefDownloadHandler.html

You can also use the TChromium.OnDownloadUpdated event and execute this to cancel the download :

callback.cancel;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM