共用方式為


View.RemoveCallbacks Method

Definition

Overloads

RemoveCallbacks(IRunnable)

Removes the specified Runnable from the message queue.

RemoveCallbacks(Action)

RemoveCallbacks(IRunnable)

Removes the specified Runnable from the message queue.

[Android.Runtime.Register("removeCallbacks", "(Ljava/lang/Runnable;)Z", "GetRemoveCallbacks_Ljava_lang_Runnable_Handler")]
public virtual bool RemoveCallbacks (Java.Lang.IRunnable? action);
[<Android.Runtime.Register("removeCallbacks", "(Ljava/lang/Runnable;)Z", "GetRemoveCallbacks_Ljava_lang_Runnable_Handler")>]
abstract member RemoveCallbacks : Java.Lang.IRunnable -> bool
override this.RemoveCallbacks : Java.Lang.IRunnable -> bool

Parameters

action
IRunnable

The Runnable to remove from the message handling queue

Returns

true if this view could ask the Handler to remove the Runnable, false otherwise. When the returned value is true, the Runnable may or may not have been actually removed from the message queue (for instance, if the Runnable was not in the queue already.)

Attributes

Remarks

Removes the specified Runnable from the message queue.

Java documentation for android.view.View.removeCallbacks(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.

See also

  • Post(IRunnable)
  • <xref:Android.Views.View.PostDelayed(Java.Lang.IRunnable%2c+System.Int64)>
  • PostOnAnimation(IRunnable)
  • <xref:Android.Views.View.PostOnAnimationDelayed(Java.Lang.IRunnable%2c+System.Int64)>

Applies to

RemoveCallbacks(Action)

public bool RemoveCallbacks (Action action);
member this.RemoveCallbacks : Action -> bool

Parameters

action
Action

Returns

Remarks

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