Showing
1 changed file
with
47 additions
and
0 deletions
远程教学之页面动作消息.md
0 → 100644
1 | +通用的基本动作定义 | ||
2 | +* 按钮点击(command:clickButton) | ||
3 | +* 单击控件(command:singleTap) | ||
4 | +* 双击控件(command:doubleTap) | ||
5 | +* 分段控件的点击(command:clickSegmentedControl) | ||
6 | +* 分页ScrollView的滚动(command:gotoSpecifiedScrollViewPage) | ||
7 | + | ||
8 | +例子 | ||
9 | +``` | ||
10 | +type:templateAction | ||
11 | +command:clickButton | ||
12 | +controlId:WordExplanationTextSwitcher | ||
13 | +index:2(保证页面内消息按顺序) | ||
14 | + | ||
15 | +type:templateAction | ||
16 | +command:clickSegmentedControl | ||
17 | +controlId:WordCompareSegmentedControl | ||
18 | +parameter:1(在这里是分段的索引) | ||
19 | +index:2(保证页面内消息按顺序) | ||
20 | + | ||
21 | +type:templateAction | ||
22 | +command:gotoSpecifiedScrollViewPage | ||
23 | +controlId:LogicTreeScrellView | ||
24 | +parameter:3(在这里是页码) | ||
25 | +index:2(保证页面内消息按顺序) | ||
26 | +``` | ||
27 | + | ||
28 | +多媒体播放器动作定义 | ||
29 | +* 播放(play) | ||
30 | +* 暂停(pause) | ||
31 | +* 停止(stop) | ||
32 | +* 全屏(fullscreen) | ||
33 | +* 小屏(smallscreen) | ||
34 | +* 进度消息(progress) | ||
35 | + | ||
36 | +``` | ||
37 | +type:templateAction | ||
38 | +subType:playerAction | ||
39 | +command:play | ||
40 | +index:2 | ||
41 | + | ||
42 | +type:templateAction | ||
43 | +subType:playerAction | ||
44 | +command:progress | ||
45 | +parameter:进度百分比(这个应该更通用) | ||
46 | +index:2 | ||
47 | +``` |
-
Please register or login to post a comment