This repository has been archived by the owner on Sep 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Downloads
Ahmed Castro edited this page Sep 6, 2018
·
7 revisions
installMod(mod_id:Int):Void
Adds the corresponding mod to download queue to be installed locally.
Name | Type | Description |
---|---|---|
mod_id | Int |
Mod's unique identifier. |
uninstallMod(mod_id:Int):Void
Removes the corresponding mod from the local storage.
Name | Type | Description |
---|---|---|
mod_id | Int |
Mod's unique identifier. |
pauseDownloads():Void
Pauses the current downloads. The state of the download queue is stored to it can be continued even after the mod.io SDK is shutdown.
resumeDownloads():Void
Resumes the downloads after a pause.
prioritizeDownload(mod_id:Int):Void
Puts the corresponding mod download to the front of the download queue.
Name | Type | Description |
---|---|---|
mod_id | Int |
Mod's unique identifier. |
setDownloadListener(callback:(response_code:Int, mod_id:Int)):Void
Registers a function to be called every time a mod is installed.
Name | Type | Description |
---|---|---|
callback | (response_code:Int, mod_id:Int) |
Function called once the process finished. |
getModDownloadQueue():Array<Dynamic>
Returns an array of QueuedModDownload objects which represents the mods that are currently queued to be installed.
getInstalledMods():Array<Dynamic>
Returns an array of InstalledMod objects which represents the mods that are locally installed.
getModState(mod_id:Int):Int
Returns the state of the corresponding mod, see Mod states.