InterceptableRouter

public protocol InterceptableRouter : Router

The router implementing this protocol should support global tasks.

  • Adds RoutingInterceptor instance

    Declaration

    Swift

    mutating func add<RI>(_ interceptor: RI) where RI : RoutingInterceptor, RI.Context == Any?

    Parameters

    interceptor

    The RoutingInterceptor instance to be executed by Router 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 a Router immediately after it will find or create UIViewController.

  • 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 a Router after routing to this step.