|
5 | 5 | // Created by gexin on 15-5-5.
|
6 | 6 | // Copyright (c) 2015年 Gexin Interactive (Beijing) Network Technology Co.,LTD. All rights reserved.
|
7 | 7 | //
|
8 |
| -// GTSDK-Version: 2.4.1.0 |
| 8 | +// GTSDK-Version: 2.4.6.0-noidfa |
9 | 9 |
|
10 | 10 | #import <Foundation/Foundation.h>
|
11 | 11 |
|
12 |
| -typedef enum { |
| 12 | +typedef NS_ENUM(NSUInteger, SdkStatus) { |
13 | 13 | SdkStatusStarting, // 正在启动
|
14 | 14 | SdkStatusStarted, // 启动、在线
|
15 | 15 | SdkStatusStoped, // 停止
|
16 | 16 | SdkStatusOffline, // 离线
|
17 |
| -} SdkStatus; |
| 17 | +}; |
18 | 18 |
|
19 | 19 | #define kGtResponseBindType @"bindAlias"
|
20 | 20 | #define kGtResponseUnBindType @"unbindAlias"
|
@@ -125,14 +125,24 @@ typedef enum {
|
125 | 125 | #pragma mark -
|
126 | 126 |
|
127 | 127 | /**
|
128 |
| - * 给用户打标签 , 后台可以根据标签进行推送 |
| 128 | + * 给用户打标签, 后台可以根据标签进行推送 |
129 | 129 | *
|
130 | 130 | * @param tags 别名数组
|
131 | 131 | * tag: 只能包含中文字符、英文字母、0-9、+-*_.的组合(不支持空格)
|
132 | 132 | *
|
133 | 133 | * @return 提交结果,YES表示尝试提交成功,NO表示尝试提交失败
|
134 | 134 | */
|
135 | 135 | + (BOOL)setTags:(NSArray *)tags;
|
| 136 | + |
| 137 | +/** |
| 138 | + * 给用户打标签, 后台可以根据标签进行推送 |
| 139 | + * |
| 140 | + * @param tags 别名数组 |
| 141 | + * tag: 只能包含中文字符、英文字母、0-9、+-*_.的组合(不支持空格) |
| 142 | + * @param aSn 绑定序列码, 不为nil |
| 143 | + * @return 提交结果,YES表示尝试提交成功,NO表示尝试提交失败 |
| 144 | + */ |
| 145 | ++ (BOOL)setTags:(NSArray *)tags andSequenceNum:(NSString *)aSn; |
136 | 146 |
|
137 | 147 | /**
|
138 | 148 | * 同步角标值到个推服务器
|
@@ -244,7 +254,7 @@ typedef enum {
|
244 | 254 | /**
|
245 | 255 | * 是否允许SDK 后台运行(默认值:NO)
|
246 | 256 | * 备注:可以未启动SDK就调用该方法
|
247 |
| - * 警告:该功能会和音乐播放冲突,使用时请注意 |
| 257 | + * 警告:该功能会和音乐播放冲突,使用时请注意。 需开启Signing & Capabilities > Background Modes > Auido, Airplay and Picture in Picture。 |
248 | 258 | *
|
249 | 259 | * @param isEnable 支持当APP进入后台后,个推是否运行,YES.允许
|
250 | 260 | */
|
@@ -328,6 +338,15 @@ typedef enum {
|
328 | 338 | */
|
329 | 339 | - (void)GeTuiSdkDidAliasAction:(NSString *)action result:(BOOL)isSuccess sequenceNum:(NSString *)aSn error:(NSError *)aError;
|
330 | 340 |
|
| 341 | +/** |
| 342 | + * 设置标签回调 |
| 343 | + * |
| 344 | + * @param sequenceNum 请求的序列码 |
| 345 | + * @param isSuccess 成功返回 YES, 失败返回 NO |
| 346 | + * @param aError 成功返回 nil, 错误返回相应error信息 |
| 347 | + */ |
| 348 | +- (void)GeTuiSdkDidSetTagsAction:(NSString *)sequenceNum result:(BOOL)isSuccess error:(NSError *)aError; |
| 349 | + |
331 | 350 | /**
|
332 | 351 | * 查询当前绑定tag结果返回
|
333 | 352 | * @param aTags 当前绑定的 tag 信息
|
|
0 commit comments