Share via


ViewTreeObserver.UnregisterFrameCommitCallback(IRunnable) Method

Definition

Attempts to remove the given callback from the list of pending frame complete callbacks.

[Android.Runtime.Register("unregisterFrameCommitCallback", "(Ljava/lang/Runnable;)Z", "", ApiSince=29)]
public bool UnregisterFrameCommitCallback (Java.Lang.IRunnable callback);
[<Android.Runtime.Register("unregisterFrameCommitCallback", "(Ljava/lang/Runnable;)Z", "", ApiSince=29)>]
member this.UnregisterFrameCommitCallback : Java.Lang.IRunnable -> bool

Parameters

callback
IRunnable

The callback to remove

Returns

Whether or not the callback was removed. If this returns true the callback will not be invoked. If false is returned then the callback was either never added or may already be pending execution and was unable to be removed

Attributes

Remarks

Attempts to remove the given callback from the list of pending frame complete callbacks.

Java documentation for android.view.ViewTreeObserver.unregisterFrameCommitCallback(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