Cocos Creator API

1.3.0

Cocos Creator is a highly customizable game development tool that utilizes the power of cocos2d-x.

screen

: 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

init ( )

initialize

fullScreen ( ) Boolean

return true if it's full now.

:

requestFullScreen
(
  • element
  • onFullScreenChange
)

change the screen to full mode.

element Element
onFullScreenChange Function

exitFullScreen ( ) Boolean

exit the full mode.

:

autoFullScreen
(
  • element
  • onFullScreenChange
)

Automatically request full screen with a touch/click event

element Element
onFullScreenChange Function

There are no methods that match your current filter settings. You can change your filter settings in the index section on this page. index