Difference between revisions of "Accelerometer.isAvailable"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
|||
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. | ||
− | < | + | <syntaxhighlight lang="lua"> |
(bool) = Accelerometer.isAvailable() | (bool) = Accelerometer.isAvailable() | ||
</source> | </source> |
Revision as of 16:46, 12 July 2023
Available since: Gideros 2012.8
Class: Accelerometer
Description
Returns true if accelerometer is available for this platform, false otherwise.
<syntaxhighlight lang="lua"> (bool) = Accelerometer.isAvailable() </source>
Return values
Returns (bool) true if accelerometer is available for this platform, false otherwise.