Difference between revisions of "Accelerometer.isAvailable"

From GiderosMobile
Line 1: Line 1:
 
Returns '''true''' if accelerometer is available for this platform, '''false''' otherwise.
 
Returns '''true''' if accelerometer is available for this platform, '''false''' otherwise.
  
<syntaxhighlight>
+
<source>
 
(bool) = Accelerometer.isAvailable()
 
(bool) = Accelerometer.isAvailable()
</syntaxhighlight>
+
</source>
  
 
=== Return value ===
 
=== Return value ===
 
'''bool:''' `true` if accelerometer is available for this platform, `false` otherwise.
 
'''bool:''' `true` if accelerometer is available for this platform, `false` otherwise.

Revision as of 10:57, 22 August 2018

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

(bool) = Accelerometer.isAvailable()

Return value

bool: `true` if accelerometer is available for this platform, `false` otherwise.