Package 

Class DeviceCoordinate

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public static String X
      public static String Y
      public static String Z
    • Method Summary

      Modifier and Type Method Description
      static DeviceCoordinate getInstance(Context context) Using Singleton pattern here
      boolean getGyroscopeSupport() Get the Device support gyroscope technology
      void start() Start getting device gyroscope logs using ACCELEROMETER sensor
      void stop() stop getting logs from ACCELEROMETER sensor
      static String getDeviceOrientation(Context context) Get the Device orientationPORTRAIT or LANDSCAPE
      void onSensorChanged(SensorEvent sensorEvent)
      void onAccuracyChanged(Sensor sensor, int i)
      • Methods inherited from class android.hardware.SensorEventListener

        onAccuracyChanged, onSensorChanged
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait