Created
May 20, 2020 03:27
-
-
Save jtmuller5/7e1c46300e06a9eaa139e70181a78449 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Handle Gravity data | |
if (currentSensor.type == Sensor.TYPE_GRAVITY) { | |
// Do something | |
} | |
// Handle Lin. Acceleration data | |
else if(currentSensor.type == Sensor.TYPE_LINEAR_ACCELERATION){ | |
// Do something else | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment