-
public interface ActivityFrameMetricsTracker.ListenerListener interface providing notifications when the activity's frame metrics are ready
-
-
Method Summary
Modifier and Type Method Description abstract UnitonFramesMetricsReady(Activity activity, Array<SparseIntArray> frameMetrics, Long foregroundTime)Called everytime when foreground activity goes to the "paused" state, which means that frame metrics for this screen session are collected -
-
Method Detail
-
onFramesMetricsReady
abstract Unit onFramesMetricsReady(Activity activity, Array<SparseIntArray> frameMetrics, Long foregroundTime)
Called everytime when foreground activity goes to the "paused" state, which means that frame metrics for this screen session are collected
- Parameters:
activity- current activityframeMetrics- raw frame metrics collected by FrameMetricsAggregatorforegroundTime- time in millis, spent by this activity in foreground state
-
-
-
-