dart/core/js/downloads library

Classes

JSChrome

Properties

chrome JSChrome
no setter

Typedefs

DangerType = String
file
The download's filename is suspicious.
url
The download's URL is known to be malicious.
content
The downloaded file is known to be malicious.
uncommon
The download's URL is not commonly downloaded and could be dangerous.
host
The download came from a host known to distribute malicious binaries and is likely dangerous.
unwanted
The download is potentially unwanted or unsafe. E.g. it could make changes to browser or computer settings.
safe
The download presents no known danger to the user's computer.
accepted
The user has accepted the dangerous download.
FilenameConflictAction = String
uniquify
To avoid duplication, the `filename` is changed to include a counter before the filename extension.
overwrite
The existing file will be overwritten with the new file.
prompt
The user will be prompted with a file chooser dialog.
HttpMethod = String
InterruptReason = String
State = String
in_progress
The download is currently receiving data from the server.
interrupted
An error broke the connection with the file host.
complete
The download completed successfully.
SuggestFilenameCallback = JSFunction

Exceptions / Errors

ApiNotAvailableException