screen 类型

模块: _decorator 父模块: cc

The fullscreen API provides an easy way for web content to be presented using the user's entire screen. It's invalid on safari, QQbrowser and android browser

索引

方法

Details

方法

init

initialize

meta description
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/platform/CCScreen.js:80
fullScreen

return true if it's full now.

meta description
返回 Boolean
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/platform/CCScreen.js:101
requestFullScreen

change the screen to full mode.

meta description
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/platform/CCScreen.js:114
参数列表
  • element Element
  • onFullScreenChange Function
exitFullScreen

exit the full mode.

meta description
返回 Boolean
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/platform/CCScreen.js:139
autoFullScreen

Automatically request full screen with a touch/click event

meta description
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/platform/CCScreen.js:148
参数列表
  • element Element
  • onFullScreenChange Function

条与 "" 相匹配的结果

    没有与 "" 匹配的结果