Class cc.screen
- Defined in: CCScreen.js
Constructor Attributes | Constructor Name and Description |
---|---|
The fullscreen API provides an easy way for web content to be presented using the user's entire screen.
|
Method Summary
Class Detail
cc.screen()
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
Method Detail
-
autoFullScreen(element, onFullScreenChange)Automatically request full screen with a touch/click event
- Parameters:
- {Element} element
- {Function} onFullScreenChange
-
{Boolean} exitFullScreen()exit the full mode.
- Returns:
- {Boolean}
-
{Boolean} fullScreen()return true if it's full now.
- Returns:
- {Boolean}
-
init()initialize
-
requestFullScreen(element, onFullScreenChange)change the screen to full mode.
- Parameters:
- {Element} element
- {Function} onFullScreenChange