1b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy/*
2b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy * Copyright (C) 2009 The Android Open Source Project
3b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy *
4b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy * Licensed under the Apache License, Version 2.0 (the "License");
5b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy * you may not use this file except in compliance with the License.
6b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy * You may obtain a copy of the License at
7b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy *
8b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy *      http://www.apache.org/licenses/LICENSE-2.0
9b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy *
10b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy * Unless required by applicable law or agreed to in writing, software
11b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy * distributed under the License is distributed on an "AS IS" BASIS,
12b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy * See the License for the specific language governing permissions and
14b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy * limitations under the License.
15b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy */
16b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy
17b5537c452271634b6ff3981b0624fa65384abd5bRomain Guypackage android.graphics.drawable;
18b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy
19b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy/**
20f456b1f078639a422f966ef2e9376cbd5ae3d274Alan Viverette * Interface that drawables supporting animations should implement.
21b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy */
22b5537c452271634b6ff3981b0624fa65384abd5bRomain Guypublic interface Animatable {
23b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy    /**
24b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy     * Starts the drawable's animation.
25b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy     */
26b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy    void start();
27b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy
28b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy    /**
29b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy     * Stops the drawable's animation.
30b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy     */
31b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy    void stop();
32b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy
33b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy    /**
34b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy     * Indicates whether the animation is running.
35b3c56086d802ae28888dd97ba1f49bd6cee0b673Alan Viverette     *
36b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy     * @return True if the animation is running, false otherwise.
37b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy     */
38b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy    boolean isRunning();
39b5537c452271634b6ff3981b0624fa65384abd5bRomain Guy}
40