XGPushPrivate.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. //
  2. // XGPushPrivate.h
  3. // TPNS-SDK
  4. //
  5. // Created by uwei on 2019/1/23.
  6. // Copyright © 2019 TPNS of Tencent. All rights reserved.
  7. //
  8. #ifndef XGPushPrivate_h
  9. #define XGPushPrivate_h
  10. #import "XGPush.h"
  11. @interface XGPush (XGPushPrivate)
  12. /**
  13. 配置TPNS的二级域名
  14. @param domainName 二级域名
  15. @note 默认广州集群,例如tpns.sgp.tencent.com代表新加坡集群, tpns.hk.tencent.com代表香港集群,等等。
  16. */
  17. - (void)configureClusterDomainName:(NSString *)domainName;
  18. /**
  19. 配置TPNS的通知状态上报,失败后重试次数
  20. @param times 重试次数
  21. @note 默认3次,配置越大,尝试的次数越多。
  22. */
  23. - (void)configureMonitorNotificationStatusRetryTimes:(int)times;
  24. #pragma mark - ********以下接口,不再使用********
  25. /**
  26. 配置基础功能的网络相关
  27. @param host url地址
  28. @param port 端口号
  29. */
  30. - (void)configureHost:(NSString *)host port:(NSInteger)port __deprecated_msg("You should use configureClusterDomainName instead");
  31. /**
  32. 配置日志上报网络相关
  33. @param host url地址
  34. @param port 端口号
  35. */
  36. - (void)configureStatReportHost:(NSString *)host port:(NSInteger)port __deprecated_msg("You should use configureClusterDomainName instead");
  37. @end
  38. #endif /* XGPushPrivate_h */