Interface INavigationCommandService
Command service
Namespace: Simplic.Navigation.Command
Assembly: Simplic.Navigation.Command.dll
Syntax
public interface INavigationCommandService
Properties
| Improve this Doc View SourceCommands
Get all commands
Declaration
IReadOnlyList<NavigationCommand> Commands { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<NavigationCommand> |
Methods
| Improve this Doc View SourceAddCommand(NavigationCommand)
Register a command
Declaration
void AddCommand(NavigationCommand command)
Parameters
Type | Name | Description |
---|---|---|
NavigationCommand | command | Command to register |
Execute(NavigationCommand, IList<String>)
Execute command
Declaration
ExecuteCommandResult Execute(NavigationCommand command, IList<string> arguments)
Parameters
Type | Name | Description |
---|---|---|
NavigationCommand | command | Command to execute |
System.Collections.Generic.IList<System.String> | arguments | Command arguments |
Returns
Type | Description |
---|---|
ExecuteCommandResult | Execution result |
RemoveCommand(NavigationCommand)
Remove a command
Declaration
void RemoveCommand(NavigationCommand command)
Parameters
Type | Name | Description |
---|---|---|
NavigationCommand | command | Command to remove |
Events
| Improve this Doc View SourceExecuteCommand
Execute command event
Declaration
event ExecuteCommandEventHandler ExecuteCommand
Event Type
Type | Description |
---|---|
ExecuteCommandEventHandler |
ExecutionFailed
Execution failed
Declaration
event ExecutionFailedEventHandler ExecutionFailed
Event Type
Type | Description |
---|---|
ExecutionFailedEventHandler |