FWModuleProtocol

@protocol FWModuleProtocol <UIApplicationDelegate, NSObject>

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

  • 模块单例

    Declaration

    Objective-C

    + (nonnull instancetype)sharedInstance;
  • 模块初始化方法,默认未实现,setupAllModules自动调用

    Declaration

    Objective-C

    - (void)setup;
  • 是否主线程同步调用setup,默认为NO,后台线程异步调用

    Declaration

    Objective-C

    + (BOOL)setupSynchronously;
  • 模块优先级,0最低。默认为Default优先级

    Declaration

    Objective-C

    + (NSUInteger)priority;