Class DeviceMotionEvent

java.lang.Object
org.vaadin.firitin.devicemotion.DeviceMotionEvent

public class DeviceMotionEvent extends Object
Represents a device motion event containing acceleration and rotation data.
Author:
mstahv
  • Constructor Details

    • DeviceMotionEvent

      public DeviceMotionEvent()
  • Method Details

    • getAcceleration

      public DeviceMotionAcceleration getAcceleration()
      Returns:
      acceleration of the device excluding the effect of gravity (can be null if not available)
    • getAccelerationIncludingGravity

      public DeviceMotionAcceleration getAccelerationIncludingGravity()
      Returns:
      acceleration of the device including the effect of gravity (can be null if not available)
    • getRotationRate

      public DeviceMotionRotationRate getRotationRate()
      Returns:
      rotation rate of the device around three axes (can be null if not available)
    • getInterval

      public Double getInterval()
      Returns:
      interval (in milliseconds) at which data is obtained from the device
    • toString

      public String toString()
      Overrides:
      toString in class Object