BGNotificationMacro.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // BGNotificationMacro.h
  3. // BuguLive
  4. //
  5. // Created by 岳克奎 on 16/8/25.
  6. // Copyright © 2016年 xfg. All rights reserved.
  7. //
  8. #ifndef FWNotificationMacro_h
  9. #define FWNotificationMacro_h
  10. // 通知中心
  11. #define Noti_Default [NSNotificationCenter defaultCenter]
  12. // 发通知参数
  13. #define Noti_Post_Param(n,s) [[NSNotificationCenter defaultCenter]postNotificationName:n object:nil userInfo:s]
  14. // 发送通知
  15. #define kNotifPost(n, o) [[NSNotificationCenter defaultCenter] postNotificationName:n object:o]
  16. // 监听通知
  17. #define kNotifAdd(n, f) [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(f) name:n object:nil]
  18. // 通知移除
  19. #define kNotifRemove() [[NSNotificationCenter defaultCenter] removeObserver:self]
  20. // 文本键盘弹起
  21. #define kHalf_IMMsgVC_Text_Keyboard_Up @"textKeyboardUp"
  22. // 控制半屏幕表情键盘 up/down
  23. #define kHalf_IMMsgVC_Enmoji_Keyboard_Up @"enmojiKeyboardUp"
  24. #define kHalf_IMMsgVC_Enmoji_Keyboard_Down @"enmojiKeyboardDown"
  25. // 控制半屏幕礼物键盘 up/down
  26. #define kHalf_IMMsgVC_Gift_Keyboard_Up @"giftKeyboardUp"
  27. #define kHalf_IMMsgVC_Gift_Keyboard_Down @"giftKeyboardDown"
  28. // 键盘恢复半VC
  29. #define kHalf_IMMsgVC_Keyboard_Resume @"KeyboardResume"
  30. // 半VC退出
  31. #define kHalf_VC_All_Quit @"halfVCAllQuit"
  32. // 直播间可以等级升级后判断是否可以发言了
  33. #define kLiveRoomCanSendMessage @"liveRoomCanSendMessage"
  34. // 微信登陆回调
  35. #define kWXLoginBack @"wXLoginBack"
  36. // 停止首页定时器
  37. #define kInvalidateHomeTimer @"invalidateHomeTimer"
  38. // 首页刷新
  39. #define kRefreshHome @"refreshHome"
  40. // 删除首页关闭了得直播间
  41. #define kRefreshHomeItem @"refreshHomeItem"
  42. //#define kRefreshGuild @"RECEIVE_GUILD_REFRESH_TYPE"
  43. #endif /* FWNotificationMacro_h */