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
    Parameters:
    {Element} element
    {Function} onFullScreenChange
  • exitFullScreen()
    exit the full mode.
  • {Boolean} fullScreen()
    return true if it's full now.
    Returns:
    {Boolean}
  • requestFullScreen(element, onFullScreenChange)
    change the screen to full mode.
    Parameters:
    {Element} element
    {Function} onFullScreenChange