Showing
1 changed file
with
47 additions
and
8 deletions
@@ -64,14 +64,53 @@ http://192.168.0.100:8788/home/sign?identifier=7 (identifier是用户id) | @@ -64,14 +64,53 @@ http://192.168.0.100:8788/home/sign?identifier=7 (identifier是用户id) | ||
64 | 64 | ||
65 | #### 页面动作命令定义 | 65 | #### 页面动作命令定义 |
66 | 66 | ||
67 | -* 点击按钮 | 67 | +通用的基本动作定义 |
68 | -* 单击控件 | 68 | +* 按钮点击(command:clickButton) |
69 | -* 双击控件 | 69 | +* 单击控件(command:singleTap) |
70 | -* 播放器进度 | 70 | +* 双击控件(command:doubleTap) |
71 | -* 其他事件 | 71 | +* 分段控件的点击(command:clickSegmentedControl) |
72 | - * 进入对比画面 | 72 | +* 分页ScrollView的滚动(command:gotoSpecifiedScrollViewPage) |
73 | - * 对比画面单词图片被单击 | 73 | + |
74 | - * 对比画面单词图片被双击 | 74 | +例子 |
75 | +``` | ||
76 | +type:templateAction | ||
77 | +command:clickButton | ||
78 | +controlId:WordExplanationTextSwitcher | ||
79 | +index:2(保证页面内消息按顺序) | ||
80 | + | ||
81 | +type:templateAction | ||
82 | +command:clickSegmentedControl | ||
83 | +controlId:WordCompareSegmentedControl | ||
84 | +parameter:1(在这里是分段的索引) | ||
85 | +index:2(保证页面内消息按顺序) | ||
86 | + | ||
87 | +type:templateAction | ||
88 | +command:gotoSpecifiedScrollViewPage | ||
89 | +controlId:LogicTreeScrellView | ||
90 | +parameter:3(在这里是页码) | ||
91 | +index:2(保证页面内消息按顺序) | ||
92 | +``` | ||
93 | + | ||
94 | +多媒体播放器动作定义 | ||
95 | +* 播放(play) | ||
96 | +* 暂停(pause) | ||
97 | +* 停止(stop) | ||
98 | +* 全屏(fullscreen) | ||
99 | +* 小屏(smallscreen) | ||
100 | +* 进度消息(progress) | ||
101 | + | ||
102 | +``` | ||
103 | +type:templateAction | ||
104 | +subType:playerAction | ||
105 | +command:play | ||
106 | +index:2 | ||
107 | + | ||
108 | +type:templateAction | ||
109 | +subType:playerAction | ||
110 | +command:progress | ||
111 | +parameter:进度百分比(这个应该更通用) | ||
112 | +index:2 | ||
113 | +``` | ||
75 | 114 | ||
76 | ### 画板相关消息 | 115 | ### 画板相关消息 |
77 | 116 |
-
Please register or login to post a comment