summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc.Application.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-05 20:51:43 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-05 20:51:43 +0800
commit8fefb8f3e100976235dc83d6ae3785952d11c710 (patch)
tree459117e6cecc70824273c4d32285cb6eec468098 /meta/3rd/Cocos4.0/library/cc.Application.lua
parentb6c18d05410fd4ca209f9c34e0992caf40cf3701 (diff)
downloadlua-language-server-8fefb8f3e100976235dc83d6ae3785952d11c710.zip
cleanup
Diffstat (limited to 'meta/3rd/Cocos4.0/library/cc.Application.lua')
-rw-r--r--meta/3rd/Cocos4.0/library/cc.Application.lua38
1 files changed, 38 insertions, 0 deletions
diff --git a/meta/3rd/Cocos4.0/library/cc.Application.lua b/meta/3rd/Cocos4.0/library/cc.Application.lua
new file mode 100644
index 00000000..507e9f91
--- /dev/null
+++ b/meta/3rd/Cocos4.0/library/cc.Application.lua
@@ -0,0 +1,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 \ No newline at end of file