InterceptableRouter
public protocol InterceptableRouter : Router
The router implementing this protocol should support global tasks.
-
Adds
RoutingInterceptor
instanceDeclaration
Swift
mutating func add<RI>(_ interceptor: RI) where RI : RoutingInterceptor, RI.Context == Any?
Parameters
interceptor
The
RoutingInterceptor
instance to be executed byRouter
before routing to this step. -
Adds ContextTask instance
Declaration
Swift
mutating func add<CT>(_ contextTask: CT) where CT : ContextTask, CT.Context == Any?, CT.ViewController == UIViewController
Parameters
contextTask
The
ContextTask
instance to be applied by aRouter
immediately after it will find or createUIViewController
. -
Adds PostRoutingTask instance
Declaration
Swift
mutating func add<PT>(_ postTask: PT) where PT : PostRoutingTask, PT.Context == Any?
Parameters
postTask
The
PostRoutingTask
instance to be executed by aRouter
after routing to this step.