ComposedControllerProvider

public protocol ComposedControllerProvider : ControllerProvider

Undocumented

  • Returns the highest priority of a responsible child controller provider

    Declaration

    Swift

    func priorityOfHighestResponsibleProvider(routeResult: RouteResult) -> Int?

    Parameters

    routeResult

    a RouteResult

    routingOption

    a RoutingOption

    Return Value

    nil if none was found, highest priority if a responsible provider was found

  • Add an instance providing a controller for a route

    Declaration

    Swift

    func add(controllerProvider: ControllerProvider, priority: Int)

    Parameters

    controllerProvider

    instance providing a controller

    priority

    The priority for calling your provider, higher priorities are called first. (Defaults to 0)