RoutingHandlerContainer
public protocol RoutingHandlerContainer
                Undocumented
- 
                  
                  
Register a handler for a route pattern The handler will be called if a route matches your route pattern. (you dont’t have to add your pattern manually in this case)
Declaration
Swift
func add(priority: Int, responsibleFor: @escaping (_ routeResult: RouteResult) -> Bool, handler: @escaping RoutingHandler) throwsParameters
priorityThe priority for calling your handler, higher priorities are called first. (Defaults to 0)
responsibleFornil if this handler should be registered for every routing option, or a spec
handlerA handler called when a route matches your route pattern
 - 
                  
                  
Returns the priority of the highest registered handler responsible for this RouteResult, RoutingOption combination
Declaration
Swift
func priorityOfHighestResponsibleProvider(routeResult: RouteResult) -> Int?Parameters
routeResulta RouteResult
routingOptiona RoutingOption
Return Value
priority of the highest registered handler
 - 
                  
                  
Returns the registered handler with the highest priority responsible for this RouteResult, RoutingOption combination
Declaration
Swift
func handler(routeResult: RouteResult) -> RoutingHandler?Parameters
routeResulta RouteResult
routingOptiona RoutingOption
Return Value
a routing handler if some is registered
 
View on GitHub
        RoutingHandlerContainer Protocol Reference