Most visited

Recently visited

Added in API level 23

Animatable2

public interface Animatable2
implements Animatable

android.graphics.drawable.Animatable2
Known Indirect Subclasses


可以扩展支持动画和回调的抽象类。

Summary

Nested classes

class Animatable2.AnimationCallback

 

Public methods

abstract void clearAnimationCallbacks()

删除所有现有的动画回调。

abstract void registerAnimationCallback(Animatable2.AnimationCallback callback)

添加回调来收听动画事件。

abstract boolean unregisterAnimationCallback(Animatable2.AnimationCallback callback)

删除指定的动画回调。

Inherited methods

From interface android.graphics.drawable.Animatable

Public methods

clearAnimationCallbacks

Added in API level 23
void clearAnimationCallbacks ()

删除所有现有的动画回调。

registerAnimationCallback

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

添加回调来收听动画事件。

Parameters
callback Animatable2.AnimationCallback: Callback to add.

unregisterAnimationCallback

Added in API level 23
boolean unregisterAnimationCallback (Animatable2.AnimationCallback 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.

Hooray!