summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc/Application.lua
blob: 507e9f91c5c50ed980c95cfc9c9c0314cebd4471 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---@meta

---@class cc.Application 
local Application={ }
cc.Application=Application




---* brief Get target platform
---@return int
function Application:getTargetPlatform () end
---* brief Get current language config<br>
---* return Current language config
---@return int
function Application:getCurrentLanguage () end
---* brief Get current language iso 639-1 code<br>
---* return Current language iso 639-1 code
---@return char
function Application:getCurrentLanguageCode () end
---* brief Open url in default browser<br>
---* param String with url to open.<br>
---* return true if the resource located by the URL was successfully opened; otherwise false.
---@param url string
---@return boolean
function Application:openURL (url) end
---* brief Get application version.
---@return string
function Application:getVersion () end
---* brief    Callback by Director to limit FPS.<br>
---* param interval The time, expressed in seconds, between current frame and next.
---@param interval float
---@return self
function Application:setAnimationInterval (interval) end
---* brief    Get current application instance.<br>
---* return Current application instance pointer.
---@return self
function Application:getInstance () end