• Parameters

    • sensor:
          | "linearAcceleration"
          | "magnetometer"
          | "magnetometer_raw"
          | "accelerometer"
          | "accelerometer_raw"
          | "gyroscope"
          | "gyroscope_raw"
          | "rotation"
          | "orientation"
          | "motion"
          | "barometer"
          | "proximity"
          | "stationary"
          | "stepCounter"
          | "stepDetector"
          | "temperature"
          | "heartBeat"
          | "heartRate"
          | "humidity"
          | "light"
          | "gravity"
          | "heading"

    Returns boolean