Parameter

open class Parameter : ObjectParameter, @unchecked Sendable

路由参数类,可直接使用,也可完全自定义

  • 路由信息来源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

    open var routerSource: String?
  • 路由信息选项,支持NavigationOptions

    Declaration

    Swift

    open var routerOptions: NavigatorOptions?
  • 路由动画选项,仅open生效

    Declaration

    Swift

    open var routerAnimated: Bool?
  • 路由信息句柄,仅open生效

    Declaration

    Swift

    open var routerHandler: (@convention(block) @MainActor @Sendable (Context, UIViewController) -> Void)?
  • Undocumented

    Declaration

    Swift

    public required init()
  • Undocumented

    Declaration

    Swift

    public required init(dictionaryValue: [AnyHashable : Any])
  • Undocumented

    Declaration

    Swift

    public var dictionaryValue: [AnyHashable : Any] { get }