# Choreographer.FrameData

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# FrameData

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/view/Choreographer.FrameData "View this page in Java")  

```
class FrameData
```

|---|------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                               ||
| ↳ | [android.view.Choreographer.FrameData](https://developer.android.com/reference/kotlin/android/view/Choreographer.FrameData#) |

The payload for[VsyncCallback](https://developer.android.com/reference/kotlin/android/view/Choreographer.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                                                                                                                                                                                                 ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)                                                                                                                              | [getFrameTimeNanos](https://developer.android.com/reference/kotlin/android/view/Choreographer.FrameData#getFrameTimeNanos())`()` The time in nanoseconds when the frame started being rendered. |
| open[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[Choreographer.FrameTimeline](https://developer.android.com/reference/kotlin/android/view/Choreographer.FrameTimeline)!\> | [getFrameTimelines](https://developer.android.com/reference/kotlin/android/view/Choreographer.FrameData#getFrameTimelines())`()` The possible frame timelines, sorted chronologically.          |
| open[Choreographer.FrameTimeline](https://developer.android.com/reference/kotlin/android/view/Choreographer.FrameTimeline)                                                                                    | [getPreferredFrameTimeline](https://developer.android.com/reference/kotlin/android/view/Choreographer.FrameData#getPreferredFrameTimeline())`()` The platform-preferred frame timeline.         |

## Public methods

### getFrameTimeNanos

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getFrameTimeNanos(): Long
```

The time in nanoseconds when the frame started being rendered.  

### getFrameTimelines

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getFrameTimelines(): Array<Choreographer.FrameTimeline!>
```

The possible frame timelines, sorted chronologically.

|                                                                                                                Return                                                                                                                ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)<[Choreographer.FrameTimeline](https://developer.android.com/reference/kotlin/android/view/Choreographer.FrameTimeline)!> | This value cannot be`null`. |

### getPreferredFrameTimeline

Added in[API level 33](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun getPreferredFrameTimeline(): Choreographer.FrameTimeline
```

The platform-preferred frame timeline.

|                                                                       Return                                                                        ||
|------------------------------------------------------------------------------------------------------------------------|-----------------------------|
| [Choreographer.FrameTimeline](https://developer.android.com/reference/kotlin/android/view/Choreographer.FrameTimeline) | This value cannot be`null`. |