Namespace 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 Summary

Method Detail

  • autoFullScreen(element, onFullScreenChange)
    Automatically request full screen with a touch/click event
    {Element} element
    {Function} onFullScreenChange
  • exitFullScreen()
    exit the full mode.
  • {Boolean} fullScreen()
    return true if it's full now.
  • requestFullScreen(element, onFullScreenChange)
    change the screen to full mode.
    {Element} element
    {Function} onFullScreenChange