Cocos Creator API

1.2.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.

返回:

类型: Boolean

requestFullScreen
(
  • element
  • onFullScreenChange
)

change the screen to full mode.

名称 类型 描述
element Element
onFullScreenChange Function

exitFullScreen ( ) Boolean

exit the full mode.

返回:

类型: Boolean

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