EventSubscriber
@available(iOS 9.0, *)
public protocol EventSubscriber : AnyObject
An EventSubscriber
can subscribe to receive events from a class that adopts EventSubscribable
.
-
Called when a view controller finishes.
Declaration
Swift
func viewControllerDidFinish(_ viewController: UIViewController)
Parameters
viewController
The view controller that finished its action.
-
Called when a view controller was cancelled.
Declaration
Swift
func viewControllerDidCancel(_ viewController: UIViewController)
Parameters
viewController
The view controller that cancelled its action.
-
Called when a view controller selects a menu item.
Declaration
Swift
func viewController(_ viewController: UIViewController, didSelect menuItem: MenuItem)
Parameters
viewController
The view controller that the menu item was selected in.
menuItem
The menu item that was selected.
-
Called when a tool controller wants another tool controller presented.
Declaration
Swift
func photoEditToolController(_ photoEditToolController: UIViewController, wantsToPresent toolController: PhotoEditToolController)
Parameters
photoEditToolController
The tool controller that asks for another tool to be presented.
toolController
The tool that should be presented.
-
Called when a
PhotoEditModel
changed.Declaration
Swift
func photoEditModelDidChange(_ photoEditModel: PhotoEditModel)
Parameters
photoEditModel
The updated photo edit model.
-
Called when an undo object should be registered.
Declaration
Swift
func registerUndoChange(from oldPhotoEditModel: PhotoEditModel, to newPhotoEditModel: PhotoEditModel)
Parameters
oldPhotoEditModel
The previous photo edit model.
newPhotoEditModel
The new photo edit model.
-
Called when the user interface state of a tool has changed.
Declaration
Swift
func userInterfaceStateDidChange(_ userInterfaceState: UserInterfaceState)
Parameters
userInterfaceState
The updated user interface state.