Added in API level 31

Event


abstract class Event
EditingEndedEvent

Event for an editing operation having ended.

NetworkEvent

Media network event.

PlaybackErrorEvent

Playback error event.

PlaybackStateEvent

Playback state event.

TrackChangeEvent

Playback track change 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