Context

public class Context : NSObject, @unchecked Sendable

URL路由上下文

  • url

    路由URL

    Declaration

    Swift

    public private(set) var url: String { get }
  • 路由用户信息

    Declaration

    Swift

    public private(set) var userInfo: [AnyHashable : Any] { get }
  • 路由完成回调

    Declaration

    Swift

    public private(set) var completion: Completion? { get }
  • 路由URL解析参数字典

    Declaration

    Swift

    public fileprivate(set) lazy var urlParameters: [AnyHashable : Any] { get set }
  • 路由userInfo和URLParameters合并参数,URL参数优先级高

    Declaration

    Swift

    public fileprivate(set) lazy var parameters: [AnyHashable : Any] { get set }
  • 路由是否以openURL方式打开,区别于objectForURL

    Declaration

    Swift

    public fileprivate(set) var isOpening: Bool { get }
  • 创建路由参数对象

    Declaration

    Swift

    public init(url: String, userInfo: [AnyHashable : Any]? = nil, completion: Completion? = nil)