/**
  * How often to retrieve the Acceleration in milliseconds. (Default: 10000)
  *
  * @param value
  */
 public void setFrequency(double value) {
   JsoHelper.setAttribute(jsObj, Attributes.FREQUENCY.getValue(), value);
 }
Exemplo n.º 2
0
 private int _getCode() {
   return JsoHelper.getAttributeAsInt(jsObj, Attributes.CODE.getValue());
 }
 public AccelerometerOptions() {
   jsObj = JsoHelper.createObject();
 }
Exemplo n.º 4
0
 /**
  * Gets the change in degrees required to initiate a watchHeading success callback.
  *
  * @return double
  */
 public double getFilter() {
   return JsoHelper.getAttributeAsDouble(jsObj, "filter");
 }
Exemplo n.º 5
0
 /**
  * Sets the change in degrees required to initiate a watchHeading success callback.
  *
  * @param value
  */
 public void setFilter(double value) {
   JsoHelper.setAttribute(jsObj, "filter", value);
 }
Exemplo n.º 6
0
 /**
  * Gets how often to retrieve the compass heading, in milliseconds. Default value is 100.
  *
  * @return double
  */
 public double getFrequency() {
   return JsoHelper.getAttributeAsDouble(jsObj, "frequency");
 }
Exemplo n.º 7
0
 /**
  * Sets how often to retrieve the compass heading, in milliseconds.
  *
  * @param value
  */
 public void setFrequency(double value) {
   JsoHelper.setAttribute(jsObj, "frequency", value);
 }
Exemplo n.º 8
0
 public CompassOptions() {
   jsObj = JsoHelper.createObject();
 }