File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Original file line number Diff line number Diff 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 */
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments