[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/android/view/SurfaceControl.TransactionStats [Back]  [Original]

SurfaceControl.TransactionStats  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.
Added in API level 35

SurfaceControl.TransactionStats


public static final class SurfaceControl.TransactionStats
extends Object

java.lang.Object
   ↳ android.view.SurfaceControl.TransactionStats


Transaction stats given to the listener registered in )">SurfaceControl.Transaction.addTransactionCompletedListener

Summary

Public methods

long getLatchTimeNanos()

Returns the timestamp (in CLOCK_MONOTONIC) of when the frame was latched by the framework and queued for presentation.

SyncFence getPresentFence()

Returns a new SyncFence that signals when the transaction has been presented.

Inherited methods

Public methods

getLatchTimeNanos

Added in API level 35
public long getLatchTimeNanos ()

Returns the timestamp (in CLOCK_MONOTONIC) of when the frame was latched by the framework and queued for presentation.

Returns
long

getPresentFence

Added in API level 35
public SyncFence getPresentFence ()

Returns a new SyncFence that signals when the transaction has been presented. The caller takes ownership of the fence and is responsible for closing it by calling SyncFence.close. If a device does not support present fences, an empty fence will be returned.

Returns
SyncFence 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-08-03 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 2026-08-03 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page