Stay organized with collections
Save and categorize content based on your preferences.
FrameTimeline
class FrameTimeline
Holds data that describes one possible VSync frame event to render at.
Summary
Public methods |
open Long |
The time in System.nanoTime() timebase which this frame needs to be ready by.
|
open Long |
The time in System.nanoTime() timebase which this frame is expected to be presented.
|
open Long |
The id that corresponds to this frame timeline, used to correlate a frame produced by HWUI with the timeline data stored in Surface Flinger.
|
Public methods
getDeadlineNanos
open fun getDeadlineNanos(): Long
The time in System.nanoTime()
timebase which this frame needs to be ready by.
getExpectedPresentationTimeNanos
open fun getExpectedPresentationTimeNanos(): Long
The time in System.nanoTime()
timebase which this frame is expected to be presented.
getVsyncId
open fun getVsyncId(): Long
The id that corresponds to this frame timeline, used to correlate a frame produced by HWUI with the timeline data stored in Surface Flinger.
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 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# Choreographer.FrameTimeline\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nFrameTimeline\n=============\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/view/Choreographer.FrameTimeline \"View this page in Java\") \n\n```\nclass FrameTimeline\n```\n\n|---|-----------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.view.Choreographer.FrameTimeline](#) |\n\nHolds data that describes one possible VSync frame event to render at.\n\nSummary\n-------\n\n| Public methods ||\n|-----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| open [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [getDeadlineNanos](#getDeadlineNanos())`()` The time in [System.nanoTime()](../../java/lang/System.html#nanoTime()) timebase which this frame needs to be ready by. |\n| open [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [getExpectedPresentationTimeNanos](#getExpectedPresentationTimeNanos())`()` The time in [System.nanoTime()](../../java/lang/System.html#nanoTime()) timebase which this frame is expected to be presented. |\n| open [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html) | [getVsyncId](#getVsyncId())`()` The id that corresponds to this frame timeline, used to correlate a frame produced by HWUI with the timeline data stored in Surface Flinger. |\n\nPublic methods\n--------------\n\n### getDeadlineNanos\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getDeadlineNanos(): Long\n```\n\nThe time in [System.nanoTime()](../../java/lang/System.html#nanoTime()) timebase which this frame needs to be ready by. \n\n### getExpectedPresentationTimeNanos\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getExpectedPresentationTimeNanos(): Long\n```\n\nThe time in [System.nanoTime()](../../java/lang/System.html#nanoTime()) timebase which this frame is expected to be presented. \n\n### getVsyncId\n\nAdded in [API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getVsyncId(): Long\n```\n\nThe id that corresponds to this frame timeline, used to correlate a frame produced by HWUI with the timeline data stored in Surface Flinger."]]