DefaultComposedRoutingOptionProvider

open class DefaultComposedRoutingOptionProvider : ComposedRoutingOptionProvider

Undocumented

  • Undocumented

    Declaration

    Swift

    public init()
  • Add an instance providing routing options for a route

    Declaration

    Swift

    open func add(optionProvider: RoutingOptionProvider, priority: Int)

    Parameters

    optionProvider

    instance providing routing options for a route

    priority

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

  • Provide a default routing option if your child providers are responsible for this route pattern parameter combination. The default behaviour should preserve a already determined option (currentOption) for this route pattern. But a RoutingOptionProvider can be used to replace a given option with an other option.

    Declaration

    Swift

    open func option(routeResult: RouteResult) -> RoutingOption?

    Parameters

    routePattern

    the route pattern for which a routing option has to be determined

    parameters

    some additional data for creating the view controller presented by this routing option

    currentOption

    The currently determined routing option - Be careful to overwrite it only on purpose

    Return Value

    A default routing option if you are responsible for this route, nil otherwise