SensorEventListener2.java revision 4bdc37d315a6dbdcf2425e70423ec43d7b74e102
1/* 2 * Copyright (C) 2008 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package android.hardware; 18 19/** 20 * Used for receiving a notification when a flush() has been successfully completed. 21 */ 22public interface SensorEventListener2 extends SensorEventListener { 23 /** 24 * Called after flush() is completed. This flush() could have been initiated by this application 25 * or some other application. All the events in the batch at the point when the flush was called 26 * have been delivered to the applications registered for those sensor events. 27 * <p> 28 * 29 * @param sensor The {@link android.hardware.Sensor Sensor} on which flush was called. 30 * 31 * @see android.hardware.SensorManager#flush(SensorEventListener) 32 */ 33 public void onFlushCompleted(Sensor sensor); 34} 35