Interface FiledownloadListener


public interface FiledownloadListener
The listener used with Filedownload.saveResumable(java.io.File, java.lang.String, java.lang.String) to reject a download if the user tried to resume it in unacceptable situation.

Available in ZK EE

For example, you might allow the user to reuse the download for, say, 24 hours, then you can pass a special key to denote it in the data argument when calling Filedownload.saveResumable(java.io.File, java.lang.String, java.lang.String). Then, you can check the data argument when onDownload(org.zkoss.util.media.Media, java.lang.Object, java.lang.String) is called back.

Since:
3.5.0
Author:
tomyeh
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    org.zkoss.util.media.Media
    onDownload(org.zkoss.util.media.Media media, Object source, String data)
    Notifies that the user is requesting the media to download.