Share via


SurfaceControl.OnJankDataListenerRegistration.RemoveAfter(Int64) Method

Definition

Schedule the removal of the registered listener after the frame with the provided id.

[Android.Runtime.Register("removeAfter", "(J)V", "GetRemoveAfter_JHandler", ApiSince=36)]
public virtual void RemoveAfter(long afterVsync);
[<Android.Runtime.Register("removeAfter", "(J)V", "GetRemoveAfter_JHandler", ApiSince=36)>]
abstract member RemoveAfter : int64 -> unit
override this.RemoveAfter : int64 -> unit

Parameters

afterVsync
Int64

the id of the Vsync after which to remove the listener

Attributes

Remarks

Schedule the removal of the registered listener after the frame with the provided id.

Because jank classification is only possible after frames have been displayed, the callbacks are always delayed. To ensure receipt of all jank classification data, an application can schedule the removal to happen no sooner than after the data for the frame with the provided id has been provided.

Use a value &lt;= 0 for afterVsync to remove the listener immediately, ensuring no future callbacks.

Java documentation for android.view.SurfaceControl.OnJankDataListenerRegistration.removeAfter(long).

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