Udostępnij za pośrednictwem


Drawable.ICallback.UnscheduleDrawable(Drawable, IRunnable) Method

Definition

A Drawable can call this to unschedule an action previously scheduled with #scheduleDrawable.

[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 (Android.Graphics.Drawables.Drawable who, Java.Lang.IRunnable what);
[<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")>]
abstract member UnscheduleDrawable : Android.Graphics.Drawables.Drawable * Java.Lang.IRunnable -> unit

Parameters

who
Drawable

The drawable being unscheduled.

what
IRunnable

The action being unscheduled.

Attributes

Remarks

A Drawable can call this to unschedule an action previously scheduled with #scheduleDrawable. An implementation can generally simply call android.os.Handler#removeCallbacks(Runnable, Object) with the parameters <var>(what, who)</var> to unschedule the drawable.

Java documentation for android.graphics.drawable.Drawable.Callback.unscheduleDrawable(android.graphics.drawable.Drawable, java.lang.Runnable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to