DownloadFileToDiskEventSchema
Downloads url into the client's own file storage under targetFileName, where GetFile and DeleteFiles can reach it afterwards. method, headers and body shape the request; timeouts overrides the client's timeouts for this transfer. On the web only requestTimeoutMillis applies, and without it the transfer has no timeout.
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.OnInsufficientDiskSpaceEventTrigger— when the download failed because the device ran out of storage; it fires instead ofOnDownloadFailureEventTriggerandOnFailureEventTrigger, carrying theThrowable(anInsufficientDiskSpaceException) as incomingData, and the error is logged. The partially written file is deleted first. The out-of-space detection matches the platform error message, so an unrecognized message falls back to the regular failure triggers.
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.