Skip to content

Commit b1752a2

Browse files
committed
ts中新增addCommandEventListener +版本号3.1.4
1 parent 285e490 commit b1752a2

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

index.d.ts

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,29 @@ export default class JPush {
350350
inappEventType: "inappShow" | "inappClick";
351351
}>
352352
): void;
353-
353+
static addCommandEventListener(
354+
callback: Callback<{
355+
/**
356+
* 命令类型(例如:1, 2, 3 等)
357+
*/
358+
command: number;
359+
360+
/**
361+
* 命令的附加信息(例如:JSON 字符串或其他数据)
362+
*/
363+
commandExtra: string;
364+
365+
/**
366+
* 命令的消息内容
367+
*/
368+
commandMessage: string;
369+
370+
/**
371+
* 命令的执行结果(例如:0 表示成功,其他值表示错误码)
372+
*/
373+
commandResult: number;
374+
}>
375+
): void;
354376
/**
355377
* tag alias事件
356378
*/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"types": "index.d.ts",
77
"license": "ISC",
88
"author": "wicked.tc130",
9-
"version": "3.1.3",
9+
"version": "3.1.4",
1010
"repository": {
1111
"type": "git",
1212
"url": "https://github.com/jpush/jpush-react-native"

0 commit comments

Comments
 (0)