java.lang.Object
com.gluonhq.attach.accelerometer.Parameters

public class Parameters extends Object
A data structure that allows configuring the AccelerometerService.
Since:
4.0.11
  • Constructor Details

    • Parameters

      public Parameters(double frequency, boolean isFilteringGravity)
      Construct new parameters for AccelerometerService.
      Parameters:
      frequency - the rate with which to update the service
      isFilteringGravity - whether to filter gravity
  • Method Details

    • getFrequency

      public double getFrequency()
      Returns:
      the rate with which to update the service
    • isFilteringGravity

      public boolean isFilteringGravity()
      Returns:
      true if gravity is being filtered
    • toString

      public String toString()
      Overrides:
      toString in class Object