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

ModIO.ModManager.GetModProfile

Jackson Wood edited this page Mar 25, 2019 · 5 revisions

ModManager.GetModProfile

public static void GetModProfile(int modId, Action<ModProfile> onSuccess, Action<WebRequestError> onError);

Parameters

Name Description
modId Identifier for the mod profile to get
onSuccess Action to execute if the request succeeds
onError Action to execute if the request returns an error

Description

Fetches and caches a Mod Profile (if not already cached).

As with all similar ModManager functions, this checks the cache for the relevant ModProfile first, and if not found, fetches it from the server and stores it in the cache. As such, there is the potential for the data returned by this function to be obsolete.

See also: ModIO.CacheClient.LoadModProfile, ModIO.APIClient.GetMod

Clone this wiki locally