screen
Class
Module: _decorator Parent Module: 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
Index
Methods
init
initializefullScreen
return true if it's full now.requestFullScreen
change the screen to full mode.exitFullScreen
exit the full mode.autoFullScreen
Automatically request full screen with a touch/click event
Details
Methods
init
initialize
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/platform/CCScreen.js:80 |
fullScreen
return true if it's full now.
meta | description |
---|---|
Returns | Boolean |
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/platform/CCScreen.js:101 |
requestFullScreen
change the screen to full mode.
meta | description |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/platform/CCScreen.js:114 |
Parameters
element
ElementonFullScreenChange
Function
exitFullScreen
exit the full mode.
meta | description |
---|---|
Returns | Boolean |
Defined in | 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 |
---|---|
Defined in | https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/platform/CCScreen.js:148 |
Parameters
element
ElementonFullScreenChange
Function