• screen 类型
    • 索引
      • 方法
  • Details
    • 方法
      • init
      • fullScreen
      • requestFullScreen
        • 参数列表
      • exitFullScreen
      • autoFullScreen
        • 参数列表

    screen 类型

    模块: _decorator父模块: 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 return true if it's full now.
    • requestFullScreen change the screen to full mode.
    • exitFullScreen exit the full mode.
    • autoFullScreen Automatically request full screen with a touch/click event

    Details

    方法

    init

    initialize

    metadescription
    定义于cocos2d/core/platform/CCScreen.js:81
    fullScreen

    return true if it's full now.

    metadescription
    返回Boolean
    定义于cocos2d/core/platform/CCScreen.js:102
    requestFullScreen

    change the screen to full mode.

    metadescription
    定义于cocos2d/core/platform/CCScreen.js:115
    参数列表
    • element Element
    • onFullScreenChange Function
    exitFullScreen

    exit the full mode.

    metadescription
    返回Boolean
    定义于cocos2d/core/platform/CCScreen.js:150
    autoFullScreen

    Automatically request full screen with a touch/click event

    metadescription
    定义于cocos2d/core/platform/CCScreen.js:168
    参数列表
    • element Element
    • onFullScreenChange Function