1e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar/* 2e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * Copyright (C) 2015 The Android Open Source Project 3e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * 4e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * Licensed under the Apache License, Version 2.0 (the "License"); 5e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * you may not use this file except in compliance with the License. 6e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * You may obtain a copy of the License at 7e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * 8e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * http://www.apache.org/licenses/LICENSE-2.0 9e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * 10e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * Unless required by applicable law or agreed to in writing, software 11e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * distributed under the License is distributed on an "AS IS" BASIS, 12e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * See the License for the specific language governing permissions and 14e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * limitations under the License. 15e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar */ 16e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar 17e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyarpackage android.support.v4.animation; 18e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar 19e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar/** 20e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * Implementors of this interface can add themselves as update listeners 21e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * to a <code>ValueAnimator</code> instance to receive callbacks on every animation 22e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * frame, after the current frame's values have been calculated for that 23e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * <code>ValueAnimator</code>. 24e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * 25e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * @hide 26e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar */ 27e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyarpublic interface AnimatorUpdateListenerCompat { 28e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar 29e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar /** 30e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * <p>Notifies the occurrence of another frame of the animation.</p> 31e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * 32e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar * @param animation The animation which was repeated. 33e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar */ 34e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar void onAnimationUpdate(ValueAnimatorCompat animation); 35e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar 36e71a1df9b3c0e1bd3c21a1b3dd20a41790d4a950Yigit Boyar}