Cocos Creator API

1.4.x

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

screen

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

Methods

init ( )

initialize

fullScreen ( ) Boolean

return true if it's full now.

returns:

type: Boolean

requestFullScreen
(
  • element
  • onFullScreenChange
)

change the screen to full mode.

name type description
element Element
onFullScreenChange Function

exitFullScreen ( ) Boolean

exit the full mode.

returns:

type: Boolean

autoFullScreen
(
  • element
  • onFullScreenChange
)

Automatically request full screen with a touch/click event

name type description
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