UNPKG

1.35 kBJSONView Raw
1{
2 "domain": "WxDebug",
3 "types": [
4 {
5 "id": "task",
6 "type": "object",
7 "properties": [
8 {
9 "name": "module",
10 "type": "string"
11 },
12 {
13 "name": "method",
14 "type": "string"
15 },
16 {
17 "name": "args",
18 "type": "array"
19 }
20 ]
21 }
22 ],
23 "commands": [
24 {
25 "name": "initJSRuntime",
26 "parameters": [
27 {
28 "name": "source",
29 "type": "string"
30 }
31 ]
32 },
33 {
34 "name": "callJS",
35 "parameters": [
36 {
37 "name": "method",
38 "type": "string"
39 },
40 {
41 "name": "args",
42 " type": "array"
43 }
44 ]
45 },
46 {
47 "name": "callNative",
48 "parameters": [
49 {
50 "name": "instance",
51 "type": "string"
52 },
53 {
54 "name": "callback",
55 "type": "string"
56 },
57 {
58 "name": "tasks",
59 "type": "array",
60 "items": {
61 "$ref": "task"
62 }
63 }
64 ]
65 }
66 ],
67 "demo": [
68 {
69 "method": "WxDebug.registerDevice",
70 "params": {
71 "name": "应用名或者包名",
72 "model": "设备型号",
73 "weexVersion": "1.2.0",
74 "platform": "Android|iOS"
75 },
76 "id": 0
77 }
78 ]
79}