Share via


Handler.RemoveCallbacksAndMessages(Object) Method

Definition

Remove any pending posts of callbacks and sent messages whose <var>obj</var> is <var>token</var>.

[Android.Runtime.Register("removeCallbacksAndMessages", "(Ljava/lang/Object;)V", "")]
public void RemoveCallbacksAndMessages (Java.Lang.Object? token);
[<Android.Runtime.Register("removeCallbacksAndMessages", "(Ljava/lang/Object;)V", "")>]
member this.RemoveCallbacksAndMessages : Java.Lang.Object -> unit

Parameters

token
Object
Attributes

Remarks

Remove any pending posts of callbacks and sent messages whose <var>obj</var> is <var>token</var>. If <var>token</var> is null, all callbacks and messages will be removed.

Java documentation for android.os.Handler.removeCallbacksAndMessages(java.lang.Object).

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