远程教学之页面动作消息.md 1.33 KB

返回在线授课相关文档

通用的基本动作定义

  • 按钮点击(command:clickButton)
  • 单击控件(command:singleTap)
  • 双击控件(command:doubleTap)
  • 分段控件的点击(command:clickSegmentedControl)
  • 分页ScrollView的滚动(command:gotoSpecifiedScrollViewPage)

例子

type:templateAction
command:clickButton
controlId:WordExplanationTextSwitcher
index:2(保证页面内消息按顺序)

type:templateAction
command:singleTap
controlId: WordExplanationImage1
index:2(保证页面内消息按顺序)

type:templateAction
command:doubleTap
controlId:WordExplanationImage1
index:2(保证页面内消息按顺序)

type:templateAction
command:clickSegmentedControl
controlId:WordCompareSegmentedControl
parameter:1(在这里是分段的索引)
index:2(保证页面内消息按顺序)

type:templateAction
command:gotoSpecifiedScrollViewPage
controlId:LogicTreeScrellView
parameter:3(在这里是页码)
index:2(保证页面内消息按顺序)

多媒体播放器动作定义

  • 播放(play)
  • 暂停(pause)
  • 停止(stop)
  • 全屏(fullscreen)
  • 小屏(smallscreen)
  • 进度消息(progress)
type:templateAction
subType:playerAction
command:play
index:2

type:templateAction
subType:playerAction
command:progress
parameter:进度百分比(这个应该更通用)
index:2