Show / Hide Table of Contents

Interface ISettingsManager

interface for Settings Manager

Namespace: Phoenix.Settings
Assembly: Phoenix.Abstractions.Settings.dll
Syntax
public interface ISettingsManager

Properties

View Source

AppDataDirectoryRoot

Gets the root folder for the settings files.

Declaration
string AppDataDirectoryRoot { get; }
Property Value
Type Description
System.String
View Source

SettingsCategories

Gets an enumeration of the settings categories.

Declaration
IEnumerable<SettingsCategoryBase> SettingsCategories { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<SettingsCategoryBase>

Methods

View Source

ChangeSettings(SettingChangeInfo)

Changes the values for the specified settings, and publishes a SettingsChangeEvent.

Declaration
void ChangeSettings(SettingChangeInfo changeInfo)
Parameters
Type Name Description
SettingChangeInfo changeInfo

The setting being changed.

View Source

ChangeSettings(List<SettingChangeInfo>)

Bulk version of the ChangeSetting function

Declaration
void ChangeSettings(List<SettingChangeInfo> changeInfos)
Parameters
Type Name Description
System.Collections.Generic.List<SettingChangeInfo> changeInfos

List of settings to change.

View Source

LoadSettings<T>()

Loads in the specified settings from an xml file.

Declaration
T LoadSettings<T>()
    where T : SettingsCategoryBase
Returns
Type Description
T

The settings object, populated with either default values (file not found) or loaded values from file.

Type Parameters
Name Description
T

Type of the object

View Source

LoadSettings<T>(String)

Loads in the specified settings from an xml file.

Declaration
T LoadSettings<T>(string settingsName)
    where T : SettingsCategoryBase
Parameters
Type Name Description
System.String settingsName

The name of the settings to load from (null will use default).

Returns
Type Description
T

The settings object, populated with either default values (file not found) or loaded values from file.

Type Parameters
Name Description
T

Type of the object

  • View Source
In This Article
Back to top Generated by DocFX