public static interface SurfaceControl.OnJankDataListener

android.view.SurfaceControl.OnJankDataListener



Listener interface to be informed about SurfaceFlinger's jank classification for a specific surface.

Summary

Public methods

abstract void onJankDataAvailable(List<SurfaceControl.JankData> jankData)

Called when new jank classifications are available.

Public methods

onJankDataAvailable

public abstract void onJankDataAvailable (List<SurfaceControl.JankData> jankData)

Called when new jank classifications are available. The listener is invoked out of band of the rendered frames with jank classification data for a batch of frames.

Parameters
jankData List: 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-02-26 UTC.