Skip to content

Most visited

Recently visited

navigation
Added in API level 23

Animatable2

public interface Animatable2
implements Animatable

android.graphics.drawable.Animatable2
Known Indirect Subclasses


Abstract class that drawables supporting animations and callbacks should extend.

Summary

Nested classes

class Animatable2.AnimationCallback

 

Public methods

abstract void clearAnimationCallbacks()

Removes all existing animation callbacks.

abstract void registerAnimationCallback(Animatable2.AnimationCallback callback)

Adds a callback to listen to the animation events.

abstract boolean unregisterAnimationCallback(Animatable2.AnimationCallback callback)

Removes the specified animation callback.

Inherited methods

From interface android.graphics.drawable.Animatable

Public methods

clearAnimationCallbacks

Added in API level 23
void clearAnimationCallbacks ()

Removes all existing animation callbacks.

registerAnimationCallback

Added in API level 23
void registerAnimationCallback (Animatable2.AnimationCallback callback)

Adds a callback to listen to the animation events.

Parameters
callback Animatable2.AnimationCallback: Callback to add.

unregisterAnimationCallback

Added in API level 23
boolean unregisterAnimationCallback (Animatable2.AnimationCallback callback)

Removes the specified animation callback.

Parameters
callback Animatable2.AnimationCallback: Callback to remove.
Returns
boolean false if callback didn't exist in the call back list, or true if callback has been removed successfully.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.