Android Guides | Samples

Android.Graphics.Drawables.Drawable.ICallback

Implement this interface if you want to create an animated drawable that extends Drawable.

See Also: Drawable+ICallback

Syntax

[Android.Runtime.Register("android/graphics/drawable/Drawable$Callback", "", "Android.Graphics.Drawables.Drawable/ICallbackInvoker")]
public interface Drawable.ICallback : IJavaObject, IDisposable

Remarks

Implement this interface if you want to create an animated drawable that extends Drawable. Upon retrieving a drawable, use Drawable.SetCallback(Drawable+ICallback) to supply your implementation of the interface to the drawable; it uses this interface to schedule and execute animation changes.

[Android Documentation]

Requirements

Namespace: Android.Graphics.Drawables
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Graphics.Drawables.Drawable.ICallback are listed below.

Public Methods

InvalidateDrawable(Drawable)
Called when the drawable needs to be redrawn.
ScheduleDrawable(Drawable, IRunnable, Int64)
A Drawable can call this to schedule the next frame of its animation.
UnscheduleDrawable(Drawable, IRunnable)
A Drawable can call this to unschedule an action previously scheduled with Drawable+ICallback.ScheduleDrawable(Drawable,IRunnable,IRunnable).