PerformanceMetricsState.Holder


class PerformanceMetricsState.Holder


This class holds the current PerformanceMetricsState for a given view hierarchy. Callers should request the holder for a hierarchy via getHolderForHierarchy, and check the value of the state property to see whether state is being tracked by JankStats for the hierarchy.

Summary

Public properties

PerformanceMetricsState?

The current PerformanceMetricsState for the view hierarchy where this Holder object was retrieved.

Public properties

state

Added in 1.0.0-beta01
val statePerformanceMetricsState?

The current PerformanceMetricsState for the view hierarchy where this Holder object was retrieved. A null value indicates that state is not currently being tracked (or stored).