Android Guides | Samples

Android.Graphics.Drawables.Drawable.ICallback.UnscheduleDrawable Method

A Drawable can call this to unschedule an action previously scheduled with ICallback.ScheduleDrawable(Drawable,IRunnable,IRunnable).

Syntax

[Android.Runtime.Register("unscheduleDrawable", "(Landroid/graphics/drawable/Drawable;Ljava/lang/Runnable;)V", "GetUnscheduleDrawable_Landroid_graphics_drawable_Drawable_Ljava_lang_Runnable_Handler:Android.Graphics.Drawables.Drawable/ICallbackInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Void UnscheduleDrawable (Drawable who, IRunnable what)

Parameters

who
The drawable being unscheduled.
what
The action being unscheduled.

Remarks

A Drawable can call this to unschedule an action previously scheduled with ICallback.ScheduleDrawable(Drawable,IRunnable,IRunnable). An implementation can generally simply call Handler.RemoveCallbacks(IRunnable,Object) with the parameters (what, who) to unschedule the drawable.

[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