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
索引
方法
- initinitialize
- fullScreenreturn true if it's full now.
- requestFullScreenchange the screen to full mode.
- exitFullScreenexit the full mode.
- autoFullScreenAutomatically request full screen with a touch/click event
Details
方法
init
initialize
| meta | description | 
|---|---|
| 定义于 | cocos2d/core/platform/CCScreen.js:81 | 
fullScreen
return true if it's full now.
| meta | description | 
|---|---|
| 返回 | Boolean | 
| 定义于 | cocos2d/core/platform/CCScreen.js:102 | 
requestFullScreen
change the screen to full mode.
| meta | description | 
|---|---|
| 定义于 | cocos2d/core/platform/CCScreen.js:115 | 
参数列表
- elementElement
- onFullScreenChangeFunction
exitFullScreen
exit the full mode.
| meta | description | 
|---|---|
| 返回 | Boolean | 
| 定义于 | cocos2d/core/platform/CCScreen.js:140 | 
autoFullScreen
Automatically request full screen with a touch/click event
| meta | description | 
|---|---|
| 定义于 | cocos2d/core/platform/CCScreen.js:149 | 
参数列表
- elementElement
- onFullScreenChangeFunction
