OpeninstallData.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  1. //
  2. // OpeninstallData.h
  3. // OpenInstallSDK
  4. //
  5. // Created by cooper on 2018/4/17.
  6. // Copyright © 2018年 cooper. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. //added in v2.7.0 用于分享统计接口中的分享平台(sharePlatform)
  10. typedef NSString *OP_SharePlatform NS_STRING_ENUM;
  11. /**
  12. * 微信好友
  13. */
  14. extern OP_SharePlatform const OP_SharePlatform_WechatSession;
  15. /**
  16. * 微信朋友圈
  17. */
  18. extern OP_SharePlatform const OP_SharePlatform_WechatTimeline;
  19. /**
  20. * 微信收藏
  21. */
  22. extern OP_SharePlatform const OP_SharePlatform_WechatFavorite;
  23. /**
  24. * 企业微信,国际版WeCom,原名WechatWork
  25. */
  26. extern OP_SharePlatform const OP_SharePlatform_WeCom;
  27. /**
  28. * QQ好友
  29. */
  30. extern OP_SharePlatform const OP_SharePlatform_QQ;
  31. /**
  32. * QQ空间
  33. */
  34. extern OP_SharePlatform const OP_SharePlatform_Qzone;
  35. /**
  36. * 新浪微博
  37. */
  38. extern OP_SharePlatform const OP_SharePlatform_Sina;
  39. /**
  40. * 腾讯微博
  41. */
  42. extern OP_SharePlatform const OP_SharePlatform_TencentWb;
  43. /**
  44. * 腾讯Tim
  45. */
  46. extern OP_SharePlatform const OP_SharePlatform_TencentTim;
  47. /**
  48. * 支付宝好友
  49. */
  50. extern OP_SharePlatform const OP_SharePlatform_APSession;
  51. /**
  52. * 钉钉
  53. */
  54. extern OP_SharePlatform const OP_SharePlatform_DingDing;
  55. /**
  56. * 抖音国内版
  57. */
  58. extern OP_SharePlatform const OP_SharePlatform_DouYin;
  59. /**
  60. * 抖音海外版(TikTok)
  61. */
  62. extern OP_SharePlatform const OP_SharePlatform_TikTok;
  63. /**
  64. * 快手
  65. */
  66. extern OP_SharePlatform const OP_SharePlatform_Kuaishou;
  67. /**
  68. * 快手国际版(Kwai)
  69. */
  70. extern OP_SharePlatform const OP_SharePlatform_Kwai;
  71. /**
  72. * 西瓜视频
  73. */
  74. extern OP_SharePlatform const OP_SharePlatform_WatermelonVideo;
  75. /**
  76. * 西瓜视频国际版(BuzzVideo)
  77. */
  78. extern OP_SharePlatform const OP_SharePlatform_BuzzVideo;
  79. /**
  80. * 人人网
  81. */
  82. extern OP_SharePlatform const OP_SharePlatform_Renren;
  83. /**
  84. * 豆瓣
  85. */
  86. extern OP_SharePlatform const OP_SharePlatform_Douban;
  87. /**
  88. * 邮箱
  89. */
  90. extern OP_SharePlatform const OP_SharePlatform_Email;
  91. /**
  92. * 短信
  93. */
  94. extern OP_SharePlatform const OP_SharePlatform_Sms;
  95. /**
  96. * Facebook
  97. */
  98. extern OP_SharePlatform const OP_SharePlatform_Facebook;
  99. /**
  100. * Facebook Messenger
  101. */
  102. extern OP_SharePlatform const OP_SharePlatform_FacebookMessenger;
  103. /**
  104. * Facebook账户系统
  105. */
  106. extern OP_SharePlatform const OP_SharePlatform_FacebookAccount;
  107. /**
  108. * 推特(Twitter)
  109. */
  110. extern OP_SharePlatform const OP_SharePlatform_Twitter;
  111. /**
  112. * Instragram
  113. */
  114. extern OP_SharePlatform const OP_SharePlatform_Instagram;
  115. /**
  116. * Whatsapp
  117. */
  118. extern OP_SharePlatform const OP_SharePlatform_Whatsapp;
  119. /**
  120. * youtube
  121. */
  122. extern OP_SharePlatform const OP_SharePlatform_Youtube;
  123. /**
  124. * SnapChat
  125. */
  126. extern OP_SharePlatform const OP_SharePlatform_SnapChat;
  127. /**
  128. * 易信好友
  129. */
  130. extern OP_SharePlatform const OP_SharePlatform_YXSession;
  131. /**
  132. * 易信朋友圈
  133. */
  134. extern OP_SharePlatform const OP_SharePlatform_YXTimeline;
  135. /**
  136. * 易信收藏夹
  137. */
  138. extern OP_SharePlatform const OP_SharePlatform_YXFavorite;
  139. /**
  140. * 明道
  141. */
  142. extern OP_SharePlatform const OP_SharePlatform_MingDao;
  143. /**
  144. * 来往好友
  145. */
  146. extern OP_SharePlatform const OP_SharePlatform_LWSession;
  147. /**
  148. * 来往朋友圈
  149. */
  150. extern OP_SharePlatform const OP_SharePlatform_LWTimeline;
  151. /**
  152. * 分享到Line
  153. */
  154. extern OP_SharePlatform const OP_SharePlatform_Line;
  155. /**
  156. * 领英
  157. */
  158. extern OP_SharePlatform const OP_SharePlatform_Linkedin;
  159. /**
  160. * Reddit
  161. */
  162. extern OP_SharePlatform const OP_SharePlatform_Reddit;
  163. /**
  164. * Tumblr
  165. */
  166. extern OP_SharePlatform const OP_SharePlatform_Tumblr;
  167. /**
  168. * Pinterest
  169. */
  170. extern OP_SharePlatform const OP_SharePlatform_Pinterest;
  171. /**
  172. * Kakao Talk
  173. */
  174. extern OP_SharePlatform const OP_SharePlatform_KakaoTalk;
  175. /**
  176. * Kakao story
  177. */
  178. extern OP_SharePlatform const OP_SharePlatform_KakaoStory;
  179. /**
  180. * Flickr
  181. */
  182. extern OP_SharePlatform const OP_SharePlatform_Flickr;
  183. /**
  184. * 有道云笔记
  185. */
  186. extern OP_SharePlatform const OP_SharePlatform_YouDaoNote;
  187. /**
  188. * 印象笔记
  189. */
  190. extern OP_SharePlatform const OP_SharePlatform_YinxiangNote;
  191. /**
  192. * 印象笔记国际版
  193. */
  194. extern OP_SharePlatform const OP_SharePlatform_EverNote;
  195. /**
  196. * google+
  197. */
  198. extern OP_SharePlatform const OP_SharePlatform_googlePlus;
  199. /**
  200. * Pocket
  201. */
  202. extern OP_SharePlatform const OP_SharePlatform_Pocket;
  203. /**
  204. * dropbox
  205. */
  206. extern OP_SharePlatform const OP_SharePlatform_dropbox;
  207. /**
  208. * vkontakte
  209. */
  210. extern OP_SharePlatform const OP_SharePlatform_vkontakte;
  211. /**
  212. * Instapaper
  213. */
  214. extern OP_SharePlatform const OP_SharePlatform_Instapaper;
  215. /**
  216. * Oasis
  217. */
  218. extern OP_SharePlatform const OP_SharePlatform_Oasis;
  219. /**
  220. * Apple
  221. */
  222. extern OP_SharePlatform const OP_SharePlatform_AppleAccount;
  223. /**
  224. * copy
  225. */
  226. extern OP_SharePlatform const OP_SharePlatform_Copy;
  227. /**
  228. * 其它平台
  229. */
  230. extern OP_SharePlatform const OP_SharePlatform_Other;
  231. //added in v2.7.0 用于安装参数返回时的超时判断
  232. typedef NS_ENUM(NSUInteger,OP_Codes) {
  233. OPCode_normal = 0,//初始化结束,并返回参数,自然安装下参数为空
  234. OPCode_timeout = 1,//获取参数超时,可在合适时机再去获取(可设置全局标识)
  235. };
  236. extern NSString *const OP_Idfa_Id;//用于第三方广告平台统计
  237. extern NSString *const OP_ASA_Token;//用于苹果ASA搜索广告
  238. extern NSString *const OP_ASA_isDev;//added in v2.5.6 用于ASA debug测试,正式环境下“不要”设置为YES
  239. @interface OpeninstallData : NSObject<NSCopying>
  240. - (instancetype)initWithData:(NSDictionary *)data
  241. channelCode:(NSString *)channelCode;
  242. @property (nonatomic,strong) NSDictionary *data;//动态参数
  243. @property (nonatomic,copy) NSString *channelCode;//渠道编号
  244. @property (nonatomic,assign) OP_Codes opCode;//返回码,用于安装参数返回时的超时判断 (added in v2.7.0)
  245. @end