Coherent UI for .NET  2.5.3
A modern user interface library for games
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Coherent.UI.Mono.IDownloadable Interface Reference

interface for handling downloads More...

Public Member Functions

bool ShouldStartDownload (Download download)
 Called when the system tries to start a new download. More...
 
void OnDownloadComplete (Download downloadItem, IntPtr data, uint size)
 Called when a download is complete More...
 
void OnDownloadFailed (Download downloadItem, DownloadErrorType error)
 Called when a download has failed More...
 

Detailed Description

interface for handling downloads

Member Function Documentation

void Coherent.UI.Mono.IDownloadable.OnDownloadComplete ( Download  downloadItem,
IntPtr  data,
uint  size 
)

Called when a download is complete

Parameters
downloadItemthe item that has been downloaded
datapointer to the downloaded data
sizethe size of the downloaded data
void Coherent.UI.Mono.IDownloadable.OnDownloadFailed ( Download  downloadItem,
DownloadErrorType  error 
)

Called when a download has failed

Parameters
downloadItemthe item that has been downloaded
errordescribes the reason for the failure
bool Coherent.UI.Mono.IDownloadable.ShouldStartDownload ( Download  download)

Called when the system tries to start a new download.

Parameters
downloadthe item to be downloaded
Returns
true to allow the download, false to cancel it