Protocols

The following protocols are available globally.

FWLogPlugin

  • 日志插件协议

    See more

    Declaration

    Objective-C

    @protocol FWLogPlugin <NSObject>

FWMediator

  • 业务模块协议,各业务必须实现

    See more

    Declaration

    Objective-C

    @protocol FWModuleProtocol <UIApplicationDelegate, NSObject>
  • 可选插件协议,可不实现。未实现时默认调用sharedInstance > init方法

    See more

    Declaration

    Objective-C

    @protocol FWPluginProtocol <NSObject>

FWObjectWrapper+FWTheme

  • iOS13主题订阅观察者监听协议,主题改变时自动通知

    See more

    Declaration

    Objective-C

    @protocol FWThemeObserver <NSObject>

FWObjectWrapper

FWClassWrapper

FWWrapper

  • Swift包装器兼容协议

    自定义fw为任意名称(如app)示例: extension FWWrapperCompatible { public static var app: FWWrapper.Type { fw } public var app: FWWrapper { fw } } 使用示例: String.app.jsonEncode(object)

    See more

    Declaration

    Swift

    public protocol FWWrapperCompatible

FWAuthorizeManager

FWAnyEncoder

FWAnyDecoder

FWSafeType

Subscript