AccelerationListener.java :  » UnTagged » pysensor » de » medieninf » sensimg » Android Open Source

Android Open Source » UnTagged » pysensor 
pysensor » de » medieninf » sensimg » AccelerationListener.java
package de.medieninf.sensimg;

/**
 * Interface, which classes that want to receive acceleration data
 * should implement. Instances can then register themselves to SensorService.
 * @author pb
 */
public interface AccelerationListener {
    /**
     * update function will be called for each sensor data.
     * @param x double, acceleration value (- left, + right)
     * @param y double, acceleration value (- towards, + away)
     * @param z double, acceleration value (- down[standard], + up[turned])
     */
    void update(double x, double y, double z);
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.