DownloadFileEventSchema
Downloads url and hands the result to the platform's own download destination — the user's Downloads folder or equivalent — under targetFileName, with mimeType describing the content. method, headers and body shape the request.
incomingData consumed: not used.
Triggers fired:
OnStartEventTrigger— before the download begins.OnDownloadProgressEventTrigger— repeatedly while downloading, with the progress passed as incomingData.OnDownloadFinishEventTriggerthenOnSuccessEventTrigger— when the download completed, both carrying targetFileName as incomingData.OnDownloadFailureEventTriggerthenOnFailureEventTrigger— when the download failed, both carrying theThrowable; the error is logged.OnCancelledEventTrigger— when the user cancels the download. No data is passed downstream, and neither the download-failure nor the failure trigger fires in that case.
Constructors
Properties
This event's own children — each declaring, via its own trigger, which of this event's outgoing triggers runs it. null when this event declares no children.
The condition that must occur for this event to run — matched by structural equality (data class/data object equality) against whatever trigger value fired, never by any kind of subscription or listener registry.