NTESService.h 693 B

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // NIMService.h
  3. // NIM
  4. //
  5. // Created by amao on 11/13/13.
  6. // Copyright (c) 2013 Netease. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @protocol NTESService <NSObject>
  10. @optional
  11. - (void)onCleanData;
  12. - (void)onReceiveMemoryWarning;
  13. - (void)onEnterBackground;
  14. - (void)onEnterForeground;
  15. - (void)onAppWillTerminate;
  16. @end
  17. @interface NTESService : NSObject<NTESService>
  18. + (instancetype)sharedInstance;
  19. //空方法,只是输出log而已
  20. //大部分的NIMService懒加载即可,但是有些因为业务需要在登录后就需要立马生成
  21. - (void)start;
  22. @end
  23. @interface NTESServiceManager: NSObject
  24. + (instancetype)sharedManager;
  25. - (void)start;
  26. - (void)destory;
  27. @end