JMSGOptionalContent.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. /*
  2. * | | | | \ \ / / | | | | / _______|
  3. * | |____| | \ \/ / | |____| | / /
  4. * | |____| | \ / | |____| | | | _____
  5. * | | | | / \ | | | | | | |____ |
  6. * | | | | / /\ \ | | | | \ \______| |
  7. * | | | | /_/ \_\ | | | | \_________|
  8. *
  9. * Copyright (c) 2011 ~ 2015 Shenzhen HXHG. All rights reserved.
  10. */
  11. #import <Foundation/Foundation.h>
  12. @class JMSGCustomNotification;
  13. /*!
  14. * @abstract 发送消息的可选功能
  15. *
  16. */
  17. @interface JMSGOptionalContent : NSObject
  18. /*!
  19. * @abstract 不保存离线消息,NO,默认值,保存离线消息;YES,不保存离线消息
  20. */
  21. @property(nonatomic, assign) BOOL noSaveOffline;
  22. /*!
  23. * @abstract 不在状态栏显示消息,NO,默认值,状态栏显示消息;YES,状态栏不显示消息
  24. */
  25. @property(nonatomic, assign) BOOL noSaveNotification;
  26. /*!
  27. * @abstract 设置这条消息的发送是否需要对方发送已读回执,NO,默认值
  28. */
  29. @property(nonatomic, assign) BOOL needReadReceipt;
  30. /*!
  31. * @abstract 设置消息发送时的未读数,默认为 1
  32. */
  33. @property(nonatomic, assign) SInt32 messageCount;
  34. /*!
  35. * @abstract 自定义消息通知栏的内容
  36. *
  37. * @discussion 这个属性可以具体参考 JMSGCustomNotification 类
  38. */
  39. @property(nonatomic, strong) JMSGCustomNotification *customNotification;
  40. @end
  41. /// 自定义通知栏消息的内容
  42. @interface JMSGCustomNotification : NSObject
  43. /*!
  44. * @abstract 是否启用自定义通知栏,默认:NO
  45. */
  46. @property(nonatomic, assign) BOOL enabled;
  47. /*!
  48. * @abstract 自定义消息通知栏的标题
  49. */
  50. @property(nonatomic, strong) NSString *title;
  51. /*!
  52. * @abstract 自定义消息通知栏的内容
  53. *
  54. */
  55. @property(nonatomic, strong) NSString *alert;
  56. /*!
  57. * @abstract 被@目标的通知内容前缀
  58. *
  59. * @discussion 此字段仅对@消息设置有效
  60. */
  61. @property(nonatomic, strong) NSString *atPrefix;
  62. /*!
  63. * @abstract 支持 iOS10 的 UNNotificationServiceExtension 字段
  64. *
  65. * @discussion 消息携带 ”mutable-content":true 说明是支持 iOS10 的 UNNotificationServiceExtension,如果不携带此字段则是普通的 Remote Notification。详情参考:UNNotificationServiceExtension(https://docs.jiguang.cn/jpush/client/iOS/ios_new_fetures/#ios-10-service-extension)
  66. */
  67. @property(nonatomic,assign) BOOL mutableContent;
  68. @end