Added in API level 31

MediaMetricsManager


class MediaMetricsManager
kotlin.Any
   ↳ android.media.metrics.MediaMetricsManager

This class gives information about, and interacts with media metrics.

Summary

Constants
static Long

Public methods
BundleSession

Creates a generic bundle session.

EditingSession

Creates a editing session.

PlaybackSession

Creates a playback session.

RecordingSession

Creates a recording session.

TranscodingSession

Creates a transcoding session.

Unit

Creates a generic bundle session.

Constants

INVALID_TIMESTAMP

Added in API level 31
static val INVALID_TIMESTAMP: Long
Value: -1L

Public methods

createBundleSession

Added in API level 33
fun createBundleSession(): BundleSession

Creates a generic bundle session.

Return
BundleSession This value cannot be null.

createEditingSession

Added in API level 33
fun createEditingSession(): EditingSession

Creates a editing session.

Return
EditingSession This value cannot be null.

createPlaybackSession

Added in API level 31
fun createPlaybackSession(): PlaybackSession

Creates a playback session.

Return
PlaybackSession This value cannot be null.

createRecordingSession

Added in API level 31
fun createRecordingSession(): RecordingSession

Creates a recording session.

Return
RecordingSession This value cannot be null.

createTranscodingSession

Added in API level 33
fun createTranscodingSession(): TranscodingSession

Creates a transcoding session.

Return
TranscodingSession This value cannot be null.

releaseSessionId

Added in API level 33
fun releaseSessionId(sessionId: String): Unit

Creates a generic bundle session.

Parameters
sessionId String: This value cannot be null.
Return
Unit This value cannot be null.