summaryrefslogtreecommitdiff
path: root/meta/3rd/Cocos4.0/library/cc.Device.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-08-13 01:23:32 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-08-13 01:23:32 +0800
commit04fa96b7c0abba4d7cca03ed12ff3b65b3912e01 (patch)
treec0c8a2c0e92d0580280f838ba475875c7f82a73c /meta/3rd/Cocos4.0/library/cc.Device.lua
parentc30c5c2e267f6917600afe4f19e1e0d674bad9c6 (diff)
downloadlua-language-server-04fa96b7c0abba4d7cca03ed12ff3b65b3912e01.zip
fix #1431
Diffstat (limited to 'meta/3rd/Cocos4.0/library/cc.Device.lua')
-rw-r--r--meta/3rd/Cocos4.0/library/cc.Device.lua34
1 files changed, 0 insertions, 34 deletions
diff --git a/meta/3rd/Cocos4.0/library/cc.Device.lua b/meta/3rd/Cocos4.0/library/cc.Device.lua
deleted file mode 100644
index 2458b36e..00000000
--- a/meta/3rd/Cocos4.0/library/cc.Device.lua
+++ /dev/null
@@ -1,34 +0,0 @@
----@meta
-
----@class cc.Device
-local Device={ }
-cc.Device=Device
-
-
-
-
----* To enable or disable accelerometer.
----@param isEnabled boolean
----@return self
-function Device:setAccelerometerEnabled (isEnabled) end
----* Sets the interval of accelerometer.
----@param interval float
----@return self
-function Device:setAccelerometerInterval (interval) end
----* Controls whether the screen should remain on.<br>
----* param keepScreenOn One flag indicating that the screen should remain on.
----@param keepScreenOn boolean
----@return self
-function Device:setKeepScreenOn (keepScreenOn) end
----* Vibrate for the specified amount of time.<br>
----* If vibrate is not supported, then invoking this method has no effect.<br>
----* Some platforms limit to a maximum duration of 5 seconds.<br>
----* Duration is ignored on iOS due to API limitations.<br>
----* param duration The duration in seconds.
----@param duration float
----@return self
-function Device:vibrate (duration) end
----* Gets the DPI of device<br>
----* return The DPI of device.
----@return int
-function Device:getDPI () end \ No newline at end of file