Volume Control
Application-specific hotkeys for Windows
|
Manages a list of HotkeyActionDefinitions. More...
Public Member Functions | |
HotkeyActionManager () | |
Creates a new HotkeyActionManager instance. More... | |
HotkeyActionDefinition? | FindActionDefinition (string identifier, StringComparison stringComparison=StringComparison.Ordinal) |
Gets the hotkey action definition with the specified identifier . More... | |
void | AddActionDefinition (HotkeyActionDefinition actionDefinition) |
Adds the specified actionDefinition to the manager. More... | |
void | RemoveActionDefinition (HotkeyActionDefinition actionDefinition) |
Removes the specified actionDefinition from the manager. More... | |
void | AddActionDefinitions (params HotkeyActionDefinition[] actionDefinitions) |
Adds the specified actionDefinitions to the manager. More... | |
Properties | |
IReadOnlyList< HotkeyActionDefinition > | ActionDefinitions [get] |
Gets the list of currently-loaded HotkeyActionDefinition objects. More... | |
Events | |
EventHandler< HotkeyActionDefinition >? | AddedActionDefinition |
Occurs when an action definition is added to the list for any reason. More... | |
EventHandler< HotkeyActionDefinition >? | RemovedActionDefinition |
Occurs when an action definition is removed from the list for any reason. More... | |
Manages a list of HotkeyActionDefinitions.
VolumeControl.Core.Input.Actions.HotkeyActionManager.HotkeyActionManager | ( | ) |
Creates a new HotkeyActionManager instance.
void VolumeControl.Core.Input.Actions.HotkeyActionManager.AddActionDefinition | ( | HotkeyActionDefinition | actionDefinition | ) |
Adds the specified actionDefinition to the manager.
actionDefinition | A HotkeyActionDefinition instance to add to the list. |
InvalidOperationException | The specified actionDefinition is already in the list. |
References VolumeControl.Core.Input.Actions.HotkeyActionManager.ActionDefinitions.
Referenced by VolumeControl.Core.Input.Actions.HotkeyActionManager.AddActionDefinitions().
void VolumeControl.Core.Input.Actions.HotkeyActionManager.AddActionDefinitions | ( | params HotkeyActionDefinition[] | actionDefinitions | ) |
Adds the specified actionDefinitions to the manager.
actionDefinitions | Any number of HotkeyActionDefinition instances to add to the list. |
References VolumeControl.Core.Input.Actions.HotkeyActionManager.AddActionDefinition().
HotkeyActionDefinition? VolumeControl.Core.Input.Actions.HotkeyActionManager.FindActionDefinition | ( | string | identifier, |
StringComparison | stringComparison = StringComparison.Ordinal |
||
) |
Gets the hotkey action definition with the specified identifier .
identifier | The identifier string associated with the action definition to get. |
stringComparison | The comparison type to use for string comparisons. |
null
.Referenced by VolumeControl.Core.Input.Json.JsonHotkey.CreateInstance< THotkey >().
void VolumeControl.Core.Input.Actions.HotkeyActionManager.RemoveActionDefinition | ( | HotkeyActionDefinition | actionDefinition | ) |
Removes the specified actionDefinition from the manager.
actionDefinition | A HotkeyActionDefinition instance to remove from the list. |
InvalidOperationException | The specified actionDefinition is not in the list. |
References VolumeControl.Core.Input.Actions.HotkeyActionManager.ActionDefinitions.
|
get |
Gets the list of currently-loaded HotkeyActionDefinition objects.
Referenced by VolumeControl.Core.Input.Actions.HotkeyActionManager.AddActionDefinition(), and VolumeControl.Core.Input.Actions.HotkeyActionManager.RemoveActionDefinition().
EventHandler<HotkeyActionDefinition>? VolumeControl.Core.Input.Actions.HotkeyActionManager.AddedActionDefinition |
Occurs when an action definition is added to the list for any reason.
EventHandler<HotkeyActionDefinition>? VolumeControl.Core.Input.Actions.HotkeyActionManager.RemovedActionDefinition |
Occurs when an action definition is removed from the list for any reason.