Added in API level 31

Event


abstract class Event
kotlin.Any
   ↳ android.media.metrics.Event

Abstract class for metrics events.

Summary

Public methods
open Bundle

Gets metrics-related information that is not supported by dedicated methods.

open Long

Gets time since the corresponding log session is created in millisecond.

Public methods

getMetricsBundle

Added in API level 31
open fun getMetricsBundle(): Bundle

Gets metrics-related information that is not supported by dedicated methods.

It is intended to be used for backwards compatibility by the metrics infrastructure.

Return
Bundle This value cannot be null.

getTimeSinceCreatedMillis

Added in API level 31
open fun getTimeSinceCreatedMillis(): Long

Gets time since the corresponding log session is created in millisecond.

Return
Long the timestamp since the instance is created, or -1 if unknown. Value is -1 or greater