DefaultComposedRoutingObserver
open class DefaultComposedRoutingObserver : ComposedRoutingObserver
Undocumented
-
Undocumented
Declaration
Swift
public init()
-
Add an instance observing controllers before they are presented
Declaration
Swift
public func add(routingObserver: RoutingObserver, priority: Int, routePattern: String?)
Parameters
routingObserver
An instance observing controllers before they are presented
priority
The priority for calling your provider, higher priorities are called first. (Defaults to 0)
routePattern
The route pattern to call this observer, the observer is called for every route if this pattern is nil
-
Event that indicates that a view controller will be presented
Declaration
Swift
public func willPresent(controller: UIViewController, routeResult: RouteResult, routingPresenter: RoutingPresenter?, wireframe: Wireframe) throws
Parameters
controller
The view controller that will be presented
routePattern
The route pattern triggering the presentation
routingOption
The RoutingOption describing how the controller will be presented
parameters
The parameters (data) extraced from the route, or given by the sender
routingPresenter
The RoutingPresenter responsible for presenting the controller
wireframe
The wireframe presenting the view controller
-
Event that indicates that a view controller was presented
Declaration
Swift
open func didPresent( controller: UIViewController, routeResult: RouteResult, routingPresenter: RoutingPresenter?, wireframe: Wireframe)
Parameters
controller
The view controller that will be presented
routePattern
The route pattern triggering the presentation
routingOption
The RoutingOption describing how the controller will be presented
parameters
The parameters (data) extraced from the route, or given by the sender
routingPresenter
The RoutingPresenter responsible for presenting the controller
wireframe
The wireframe presenting the view controller