PerformanceMetricsState.Holder

public final 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 methods

final PerformanceMetricsState

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

Public methods

getState

Added in 1.0.0-beta01
public final PerformanceMetricsState getState()

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).