Parameter

open class Parameter : ObjectParameter, JSONModel, KeyMappable

默认路由参数类,可继承使用,也可完全自定义

  • 路由信息来源Key,兼容字典传参,默认未使用

    Declaration

    Swift

    public static let routerSourceKey: String
  • 路由信息选项Key,兼容字典传参,支持NavigationOptions

    Declaration

    Swift

    public static let routerOptionsKey: String
  • 路由动画选项Key,兼容字典传参,仅open生效

    Declaration

    Swift

    public static let routerAnimatedKey: String
  • 路由信息句柄Key,兼容字典传参,仅open生效

    Declaration

    Swift

    public static let routerHandlerKey: String
  • 路由信息来源,默认未使用

    Declaration

    Swift

    @MappedValue
    open var routerSource: String? { get set }
  • 路由信息选项,支持NavigationOptions

    Declaration

    Swift

    @MappedValue
    open var routerOptions: NavigatorOptions? { get set }
  • 路由动画选项,仅open生效

    Declaration

    Swift

    @MappedValue
    open var routerAnimated: Bool? { get set }
  • 路由信息句柄,仅open生效

    Declaration

    Swift

    @MappedValue
    open var routerHandler: ((Context, UIViewController) -> Void)? { get set }
  • Undocumented

    Declaration

    Swift

    public required init()