ANDROID
BLACKBERRY
BROWSER_TYPE_360
BROWSER_TYPE_ALIPAY_GAME
BROWSER_TYPE_ANDROID
BROWSER_TYPE_BAIDU
BROWSER_TYPE_BAIDU_APP
BROWSER_TYPE_BAIDU_GAME
BROWSER_TYPE_CHROME
BROWSER_TYPE_COCOSPLAY
BROWSER_TYPE_FIREFOX
BROWSER_TYPE_IE
BROWSER_TYPE_LIEBAO
BROWSER_TYPE_MAXTHON
BROWSER_TYPE_MIUI
BROWSER_TYPE_MOBILE_QQ
BROWSER_TYPE_OPERA
BROWSER_TYPE_OUPENG
BROWSER_TYPE_QQ
BROWSER_TYPE_QZONE
BROWSER_TYPE_SAFARI
BROWSER_TYPE_SOUGOU
BROWSER_TYPE_UC
uc third party integration.
BROWSER_TYPE_UNKNOWN
BROWSER_TYPE_WECHAT
BROWSER_TYPE_WECHAT_GAME
BROWSER_TYPE_XIAOMI_GAME
DESKTOP_BROWSER
Indicates whether executes in editor's main process (Electron's browser context)
Indicates whether executes in editor's window process (Electron's renderer context)
EMSCRIPTEN
IPAD
IPHONE
Arabic language code
Bulgarian language code
Chinese language code
Spanish language code
English language code
French language code
German language code
Hungarian language code
Italian language code
Japanese language code
Korean language code
Norwegian language code
Polish language code
Portuguese language code
Romanian language code
Russian language code
Spanish language code
Turkish language code
Ukrainian language code
Unknown language code
LINUX
MACOS
MOBILE_BROWSER
NACL
OS_ANDROID
OS_BADA
OS_BLACKBERRY
OS_IOS
OS_LINUX
OS_MARMALADE
OS_OSX
OS_UNKNOWN
OS_WINDOWS
OS_WINRT
OS_WP8
QQ_PLAY
TIZEN
UNKNOWN
WECHAT_GAME
WIN32
WINRT
WP8
Indicate the running browser type
Indicate the running browser version
Is web browser ?
Endianess of current platform
Indicate whether system is mobile system
Is native ? This is set to be true in jsb auto.
Indicate the current language of the running system
Indicate the running os name
Indicate the running os main version
Indicate the running os version
Indicate the running platform
Clean a script in the JS VM, only available in JSB
Dump system informations
Dumps rooted objects, only available in JSB
Forces the garbage collection, only available in JSB
获取当前设备的电池电量,如果电量无法获取,默认将返回 1
获取当前设备的网络类型, 如果网络类型无法获取,默认将返回 cc.sys.NetworkType.LAN
Check whether an object is valid, In web engine, it will return true if the object exist In native engine, it will return true if the JS object and the correspond native object are both valid
Get the number of milliseconds elapsed since 1 January 1970 00:00:00 UTC.
Open a url in browser
Restart the JS VM, only available in JSB
网络类型枚举
通过无线或者有线本地网络连接因特网
网络不通
通过蜂窝移动网络连接因特网
Indicate the real pixel resolution of the whole game window
Generated using TypeDoc
System variables