public static interface Choreographer.VsyncCallback

android.view.Choreographer.VsyncCallback



Implement this interface to receive a callback to start the next frame. The callback is invoked on the Looper thread to which the Choreographer is attached. The callback payload contains information about multiple possible frames, allowing choice of the appropriate frame based on latency requirements.

Summary

Public methods

abstract void onVsync(Choreographer.FrameData data)

Called when a new display frame is being rendered.

Public methods

onVsync

public abstract void onVsync (Choreographer.FrameData data)

Called when a new display frame is being rendered.

Parameters
data Choreographer.FrameData: The payload which includes frame information. Divide nanosecond values by 1000000 to convert it to the SystemClock.uptimeMillis() time base. data is not valid outside of onVsync and should not be accessed outside the callback.
This value cannot be null.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-02-26 UTC.