screen Class

Module: cc 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

Details

Methods

init

initialize

meta description
Defined in cocos2d/core/platform/CCScreen.js:81
fullScreen

return true if it's full now.

meta description
Returns Boolean
Defined in cocos2d/core/platform/CCScreen.js:102
requestFullScreen

change the screen to full mode.

meta description
Defined in cocos2d/core/platform/CCScreen.js:115
Parameters
  • element Element
  • onFullScreenChange Function
exitFullScreen

exit the full mode.

meta description
Returns Boolean
Defined in cocos2d/core/platform/CCScreen.js:140
autoFullScreen

Automatically request full screen with a touch/click event

meta description
Defined in cocos2d/core/platform/CCScreen.js:149
Parameters
  • element Element
  • onFullScreenChange Function

results matching ""

    No results matching ""