Added in API level 33
    VsyncCallback
interface 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 Unit | onVsync(data: Choreographer.FrameData)Called when a new display frame is being rendered. | 
Public methods
onVsync
Added in API level 33
      abstract fun onVsync(data: Choreographer.FrameData): Unit
Called when a new display frame is being rendered.
| Parameters | |
|---|---|
| data | Choreographer.FrameData: The payload which includes frame information. Divide nanosecond values by 1000000to convert it to theSystemClock.uptimeMillis()time base.datais not valid outside ofonVsyncand should not be accessed outside the callback. This value cannot benull. | 
