RouteParametersDecodable

public protocol RouteParametersDecodable

The protocol for decoding an input value from URL route parameters. Conform your input types to this to to enable execution of actions with your input type when incoming URLs are parsed.

  • Construct the type from the specified URL parameters. Implementations can use the mapping parameter to perform different parsing based on the kind of URL e.g. app custom URL scheme or deep linking.

    • param routeParameters: The dictionary of URL query parameters
    • param mapping: The URL mapping that the incoming URL matched

    Declaration

    Swift

    init?(from routeParameters: RouteParameters?, mapping: URLMapping)