/** * This interface provides a means by which the UltrasoundListener class * can notify external applications of ultrasound detections. Any * external class that uses the UltrasoundListener class must supply it * with a reference to an object that implements this * UltrasoundUpdateListener interface. Whenever the UltrasoundListener * class detects ultrasound, it notifies the class that implements this * interface. * * @author Tony Offer * @author Chris Palistrant * @version 1.0 */ public interface UltrasoundUpdateListener { /** * This method is called by the UltrasoundListener class when * ultrasound is detected. A timestamp describing the time at which * the ultrasound was detected is passed into this method. * * @param timeDetected The time (in milliseconds since January 1, * 1970) at which ultrasound was detected. */ void ultrasoundDetected(long timeDetected); }