Package net.runelite.client.config
Class ConfigManager
- java.lang.Object
-
- net.runelite.client.config.ConfigManager
-
@Singleton public class ConfigManager extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
RSPROFILE_DISPLAY_NAME
static String
RSPROFILE_GROUP
static String
RSPROFILE_TYPE
-
Method Summary
-
-
-
Field Detail
-
RSPROFILE_GROUP
public static final String RSPROFILE_GROUP
- See Also:
- Constant Field Values
-
RSPROFILE_DISPLAY_NAME
public static final String RSPROFILE_DISPLAY_NAME
- See Also:
- Constant Field Values
-
RSPROFILE_TYPE
public static final String RSPROFILE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
switchProfile
public void switchProfile(ConfigProfile newProfile)
-
getRSProfileKey
public String getRSProfileKey()
-
onSessionOpen
@Subscribe public void onSessionOpen(SessionOpen sessionOpen)
-
onSessionClose
@Subscribe public void onSessionClose(SessionClose sessionClose)
-
toggleSync
public void toggleSync(ConfigProfile profile, boolean sync)
-
renameProfile
public void renameProfile(ConfigProfile profile, String name)
-
importAndMigrate
public void importAndMigrate(ProfileManager.Lock lock, File from, ConfigProfile targetProfile)
-
load
public void load()
-
getRSProfileConfigurationKeys
public List<String> getRSProfileConfigurationKeys(String group, String profile, String keyPrefix)
-
getRSProfileConfiguration
public <T> T getRSProfileConfiguration(String groupName, String key, Type clazz)
-
getConfiguration
public <T> T getConfiguration(String groupName, String profile, String key, Type type)
-
setConfiguration
public void setConfiguration(String groupName, String profile, String key, @NonNull @NonNull String value)
-
setConfiguration
public <T> void setConfiguration(String groupName, String profile, String key, T value)
-
setRSProfileConfiguration
public <T> void setRSProfileConfiguration(String groupName, String key, T value)
-
getConfigDescriptor
public ConfigDescriptor getConfigDescriptor(Config configurationProxy)
-
setDefaultConfiguration
public <T extends Config> void setDefaultConfiguration(T proxy, boolean override)
Initialize the configuration from the default settings- Parameters:
proxy
- proxy instance implementingConfig
-
sendConfig
public void sendConfig()
-
getRSProfiles
public List<RuneScapeProfile> getRSProfiles()
-
getProfile
public ConfigProfile getProfile()
-
-