Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Downloads

Ahmed Castro edited this page Sep 6, 2018 · 7 revisions

installMod

installMod(mod_id:Int):Void

Adds the corresponding mod to download queue to be installed locally.

Function parameters

Name Type Description
mod_id Int Mod's unique identifier.

uninstallMod

uninstallMod(mod_id:Int):Void

Removes the corresponding mod from the local storage.

Function parameters

Name Type Description
mod_id Int Mod's unique identifier.

pauseDownloads

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

resumeDownloads():Void

Resumes the downloads after a pause.

prioritizeDownload

prioritizeDownload(mod_id:Int):Void

Puts the corresponding mod download to the front of the download queue.

Function parameters

Name Type Description
mod_id Int Mod's unique identifier.

setDownloadListener

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

getModDownloadQueue():Array<Dynamic>

Returns an array of QueuedModDownload objects which represents the mods that are currently queued to be installed.

getInstalledMods

getInstalledMods():Array<Dynamic>

Returns an array of InstalledMod objects which represents the mods that are locally installed.

getModState

getModState(mod_id:Int):Int

Returns the state of the corresponding mod, see Mod states.

Clone this wiki locally