Difference between revisions of "Accelerometer.isAvailable"

From GiderosMobile
m (----)
m (Text replacement - "</source" to "</syntaxhighlight")
 
(6 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
Returns ''true'' if accelerometer is available for this platform, ''false'' otherwise.
 
Returns ''true'' if accelerometer is available for this platform, ''false'' otherwise.
  
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(bool) = Accelerometer.isAvailable()
 
(bool) = Accelerometer.isAvailable()
</source>
+
</syntaxhighlight>
  
 
=== Return values ===
 
=== Return values ===
 
'''Returns''' (bool) ''true'' if accelerometer is available for this platform, ''false'' otherwise.
 
'''Returns''' (bool) ''true'' if accelerometer is available for this platform, ''false'' otherwise.
  
----
+
{{Accelerometer}}
 
 
{{Special:PrefixIndex/Accelerometer}}
 

Latest revision as of 18:00, 12 July 2023

Available since: Gideros 2012.8
Class: Accelerometer

Description

Returns true if accelerometer is available for this platform, false otherwise.

(bool) = Accelerometer.isAvailable()

Return values

Returns (bool) true if accelerometer is available for this platform, false otherwise.