|
|
|
|
|
DownloadGetInfo (Function) In french: TéléchargementRécupèreInfo Retrieves the details of a download present in the download manager. Note: Download functions have no effect in the simulator.
PROCEDURE FinDeTéléchargement(InfoTéléchargement is TéléchargementInfo)
IF InfoTéléchargement.Etat = downloadStatusSuccessful THEN
Info("Le téléchargement " + InfoTéléchargement.Titre + " est terminé."
RETURN False
END
ParamètreTéléchargement is TéléchargementParamètre
ParamètreTéléchargement.Source = ...
"https://www.pcsoft.fr/img/visuels/download.php?filename=pcsoft/logo-pcsoft.png"
ParamètreTéléchargement.Titre = "Logo PC Soft"
ParamètreTéléchargement.Description = "Logo de l'entreprise PC Soft."
ParamètreTéléchargement.Destination = SysDirExternalStorage(1, sseAppDownload)
ParamètreTéléchargement.RéseauMobileAutorisé = True
ParamètreTéléchargement.RéseauRestreintAutorisé = False
ParamètreTéléchargement.EnCharge = True
ParamètreTéléchargement.ModeNotification = downloadNotifProgressAndCompletion
ParamètreTéléchargement.ProcédureFin = "FinDeTéléchargement"
nID is int = DownloadAdd(ParamètreTéléchargement)
telInfo is TéléchargementInfo = DownloadGetInfo(nID)
Info(telInfo.Titre)
Syntax
<Result> = DownloadGetInfo(<Identifier>)
<Result>: DownloadInfo variable DownloadInfo variable that contains the details of the download. <Identifier>: Integer Identifier of the download (returned by DownloadAdd). Remarks Required permissions This function changes the permissions required by the application. Permission required: INTERNET This permission allows the applications to open the network sockets.
Related Examples:
|
Android (WINDEV Mobile): Android Downloads
[ + ] This example illustrates background downloads in WINDEV Mobile and Android. It is no longer necessary to keep the application open to propose the download of a file. The download manager allows you to download large files and to notify the application when the downloads are finished.
|
Component: wd300android.aar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|