SimpleCommand
A base ICommand implementation.
Your subclass should override the execute
method where your business logic will handle the INotification.
@see org.puremvc.swift.multicore.core.Controller Controller
@see org.puremvc.swift.multicore.patterns.observer.Notification Notification
@see org.puremvc.swift.multicore.patterns.command.MacroCommand MacroCommand
-
Fulfill the use-case initiated by the given
INotification.In the Command Pattern, an application use-case typically begins with some user action, which results in an
INotificationbeing broadcast, which is handled by business logic in theexecutemethod of anICommand.Declaration
Swift
open func execute(_ notification: INotification)Parameters
notificationthe
INotificationto handle.
SimpleCommand Class Reference