Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 612 Bytes

supportsAccelerometer.markdown

File metadata and controls

22 lines (14 loc) · 612 Bytes

device.supportsAccelerometer

 
Type Boolean
Library device.*
Keywords accelerometer, event
See also Sample code

Overview

This property indicates whether the device running the application supports accelerometer events.

Example

local device = require 'plugin.device'

print( device.supportsAccelerometer )