Defines the command handler function.
Viewer instance that executes the command.
Parameters passed to the command handler function.
Defines the command handler function.