Android Guides | Samples

Android.Graphics.Drawables.LayerDrawable.ScheduleDrawable Method

A Drawable can call this to schedule the next frame of its animation.

Syntax

[Android.Runtime.Register("scheduleDrawable", "(Landroid/graphics/drawable/Drawable;Ljava/lang/Runnable;J)V", "GetScheduleDrawable_Landroid_graphics_drawable_Drawable_Ljava_lang_Runnable_JHandler")]
public virtual Void ScheduleDrawable (Drawable who, IRunnable what, Int64 when)

Parameters

who
The drawable being scheduled.
what
The action to execute.
when
The time (in milliseconds) to run. The timebase is SystemClock.UptimeMillis

Remarks

A Drawable can call this to schedule the next frame of its animation. An implementation can generally simply call Handler.PostAtTime(IRunnable,Object,Object) with the parameters (what, who, when) to perform the scheduling.

[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