Added in API level 33

Choreographer.FrameData


public static class Choreographer.FrameData
extends Object

java.lang.Object
   ↳ android.view.Choreographer.FrameData


The payload for VsyncCallback which includes frame information such as when the frame started being rendered, and multiple possible frame timelines and their information including deadline and expected present time.

Summary

Public methods

long getFrameTimeNanos()

The time in nanoseconds when the frame started being rendered.

FrameTimeline[] getFrameTimelines()

The possible frame timelines, sorted chronologically.

Choreographer.FrameTimeline getPreferredFrameTimeline()

The platform-preferred frame timeline.

Inherited methods

Public methods

getFrameTimeNanos

Added in API level 33
public long getFrameTimeNanos ()

The time in nanoseconds when the frame started being rendered.

Returns
long

getFrameTimelines

Added in API level 33
public FrameTimeline[] getFrameTimelines ()

The possible frame timelines, sorted chronologically.

Returns
FrameTimeline[] This value cannot be null.

getPreferredFrameTimeline

Added in API level 33
public Choreographer.FrameTimeline getPreferredFrameTimeline ()

The platform-preferred frame timeline.

Returns
Choreographer.FrameTimeline This value cannot be null.