Skip to content

Commit

Permalink
chore(types): fix some type check in VideoContext (#1691)
Browse files Browse the repository at this point in the history
add params in requestFullScreen
add method stop
add method showStatusBar
add method hideStatusBar
  • Loading branch information
LuckyJoker authored and luckyadam committed Dec 26, 2018
1 parent 487217d commit fbec154
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion packages/taro/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2493,6 +2493,12 @@ declare namespace Taro {
* 暂停
*/
pause(): void
/**
* 停止
*
* @since 1.7.0
*/
stop(): void
/**
* 跳转到指定位置,单位 s
*/
Expand All @@ -2512,13 +2518,25 @@ declare namespace Taro {
*
* @since 1.4.0
*/
requestFullScreen(): void
requestFullScreen(param: {direction: 0 | 90 | -90}): void
/**
* 退出全屏
*
* @since 1.4.0
*/
exitFullScreen(): void
/**
* 显示状态栏,仅在iOS全屏下有效
*
* @since 2.1.0
*/
showStatusBar(): void
/**
* 隐藏状态栏,仅在iOS全屏下有效
*
* @since 2.1.0
*/
hideStatusBar(): void
}
/**
* @since 1.6.0
Expand Down

0 comments on commit fbec154

Please sign in to comment.