NIMCustomSystemNotificationSetting.h 996 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // NIMCustomNotificationSetting.h
  3. // NIMLib
  4. //
  5. // Created by Netease.
  6. // Copyright © 2015年 Netease. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. /**
  11. * 自定义系统通知配置
  12. */
  13. @interface NIMCustomSystemNotificationSetting : NSObject
  14. /**
  15. * 系统通知是否需要被计入苹果推送通知的未读计数
  16. * @discussion 默认为YES。默认情况下,用户收到的自定义系统通知会在应用图标上累计未读。
  17. */
  18. @property (nonatomic,assign) BOOL shouldBeCounted;
  19. /**
  20. * 消息是否需要苹果推送
  21. * @discussion 默认为YES。将这个字段设为NO,消息将不再有苹果推送通知。
  22. */
  23. @property (nonatomic,assign) BOOL apnsEnabled;
  24. /**
  25. * 苹果推送是否需要带前缀(一般为昵称)
  26. * @discussion 默认为NO。将这个字段设为YES,推送消息将带有前缀(xx:)。
  27. */
  28. @property (nonatomic,assign) BOOL apnsWithPrefix;
  29. @end
  30. NS_ASSUME_NONNULL_END