Help / WLanguage / WLanguage functions / Mobile specific functions / Download functions
  • Required permissions
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Stored procedures
Retrieves the details of a download present in the download manager.
Remark: Download functions will have no effect in the simulator.
// Procedure to call at the end of the download
PROCÉDURE DownloadCompleted(InfoDownload is DownloadInfo)
IF InfoDownload.Status = downloadStatusSuccessful THEN
   Info(InfoDownload.Title + " has been downloaded successfully."
   RESULT False
// ---------------
// Create a DownloadParameter variable
// to store the download information
ParameterDownload is DownloadParameter
// Specify the parameters of the download
ParameterDownload.Source = ...
ParameterDownload.Title = "PC Soft Logo"
ParameterDownload.Description = "PC Soft company logo"
ParameterDownload.Destination = SysDirExternalStorage(1, sseAppDownload)
ParameterDownload.MobileNetworkAllowed = True
ParameterDownload.MeteredNetworkAllowed = False
ParameterDownload.RequiresCharging = True
ParameterDownload.NotificationMode = downloadNotifProgressAndCompletion
// Procedure to call at the end of the download
ParameterDownload.ProcedureEnd = "DownloadCompleted"
// The download is added to the list of downloads to be started
// (The download manager will start the download as soon as possible).
nID is int = DownloadAdd(ParameterDownload)
telInfo is DownloadInfo = DownloadGetInfo(nID)
<Result> = DownloadGetInfo(<Identifier>)
<Result>: DownloadInfo variable
DownloadInfo variable that contains the details of the download.
<Identifier>: Integer
Identifier of the download (returned by DownloadAdd).

Required permissions

The call to this function modifies the permissions required by the application.
Required permission: INTERNET
This permission allows the applications to open the network sockets.
Related Examples:
Android Downloads 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: wd290android.aar
Minimum version required
  • Version 27
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help