File tree Expand file tree Collapse file tree 3 files changed +29
-7
lines changed Expand file tree Collapse file tree 3 files changed +29
-7
lines changed Original file line number Diff line number Diff line change 39
39
#### 5. 设置账号
40
40
/// account 账号标识
41
41
/// accountType 账号类型枚举
42
+ /// note 同一账号类型对应一个唯一账号,覆盖操作,多账号体系请使用不同账号类型
42
43
``` dart
43
44
void setAccount(String account, AccountType accountType);
44
45
```
152
153
_unRegistered 数据类型 String para: 注销成功或者失败信息
153
154
```
154
155
155
- #### 7 绑定账号和标签回调
156
+ #### 7 绑定账号/标签/用户属性回调
157
+ ** 说明** V1.2.8开始返回类型由String->Map,新增code及type标识!
156
158
``` dart
157
159
_xgPushDidBindWithIdentifier 数据类型 Map<String, Object> para:
158
160
key:
161
163
msg: String类型,提示信息
162
164
```
163
165
164
- #### 8 解绑账号和标签回调
166
+ #### 8 解绑账号/标签/用户属性回调
167
+ ** 说明** V1.2.8开始返回类型由String->Map,新增code及type标识!
165
168
``` dart
166
169
_xgPushDidUnbindWithIdentifier 数据类型 Map<String, Object> para:
167
170
key:
170
173
msg: String类型,提示信息
171
174
```
172
175
173
- #### 9 清除所有账号和标签回调
176
+ #### 9 更新标签/用户属性回调
177
+ ** 说明** V1.2.8开始返回类型由String->Map,新增code及type标识!
178
+ ``` dart
179
+ _xgPushDidUpdatedBindedIdentifier 数据类型 Map<String, Object> para:
180
+ key:
181
+ code:int类型,操作结果,0代表成功
182
+ type: String类型,操作类型,取值为tag/attributes
183
+ msg: String类型,提示信息
184
+ ```
185
+
186
+ #### 10 清除所有账号/标签/用户属性回调
187
+ ** 说明** V1.2.8开始返回类型由String->Map,新增code及type标识!
174
188
``` dart
175
189
_xgPushDidClearAllIdentifiers 数据类型 Map<String, Object> para:
176
190
key:
Original file line number Diff line number Diff line change @@ -68,18 +68,26 @@ class _MyAppState extends State<MyApp> {
68
68
print ("flutter xgPushDidSetBadge: $msg " );
69
69
_showAlert (msg);
70
70
},
71
+
72
+ /// V1.2.8开始返回类型由String->Map,新增code及type标识!
71
73
xgPushDidBindWithIdentifier: (Map <String , dynamic > result) async {
72
74
print ("flutter xgPushDidBindWithIdentifier: $result " );
73
75
_showAlert (result["msg" ]);
74
76
},
77
+
78
+ /// V1.2.8开始返回类型由String->Map,新增code及type标识!
75
79
xgPushDidUnbindWithIdentifier: (Map <String , dynamic > result) async {
76
80
print ("flutter xgPushDidUnbindWithIdentifier: $result " );
77
81
_showAlert (result["msg" ]);
78
82
},
83
+
84
+ /// V1.2.8开始返回类型由String->Map,新增code及type标识!
79
85
xgPushDidUpdatedBindedIdentifier: (Map <String , dynamic > result) async {
80
86
print ("flutter xgPushDidUpdatedBindedIdentifier: $result " );
81
87
_showAlert (result["msg" ]);
82
88
},
89
+
90
+ /// V1.2.8开始返回类型由String->Map,新增code及type标识!
83
91
xgPushDidClearAllIdentifiers: (Map <String , dynamic > result) async {
84
92
print ("flutter xgPushDidClearAllIdentifiers: $result " );
85
93
_showAlert (result["msg" ]);
Original file line number Diff line number Diff line change @@ -78,16 +78,16 @@ class XgFlutterPlugin {
78
78
/// 设置角标回调仅iOS
79
79
EventHandler ? _xgPushDidSetBadge;
80
80
81
- /// 绑定账号和标签回调
81
+ /// 绑定账号/标签/用户属性回调,V1.2.8开始返回类型由String->Map,新增code及type标识!
82
82
EventHandlerMap ? _xgPushDidBindWithIdentifier;
83
83
84
- /// 解绑账号和标签回调
84
+ /// 解绑账号/标签/用户属性回调,V1.2.8开始返回类型由String->Map,新增code及type标识!
85
85
EventHandlerMap ? _xgPushDidUnbindWithIdentifier;
86
86
87
- /// 更新标签回调
87
+ /// 更新标签/用户属性回调,V1.2.8开始返回类型由String->Map,新增code及type标识!
88
88
EventHandlerMap ? _xgPushDidUpdatedBindedIdentifier;
89
89
90
- /// 清除所有账号和标签回调
90
+ /// 清除所有账号/标签/用户属性回调,V1.2.8开始返回类型由String->Map,新增code及type标识!
91
91
EventHandlerMap ? _xgPushDidClearAllIdentifiers;
92
92
93
93
/// 获取sdk版本号
You can’t perform that action at this time.
0 commit comments