PlaybackStatsListener.Callback


interface PlaybackStatsListener.Callback


A listener for PlaybackStats updates.

Summary

Public functions

Unit
onPlaybackStatsReady(
    eventTime: AnalyticsListener.EventTime!,
    playbackStats: PlaybackStats!
)

Called when a playback session ends and its PlaybackStats are ready.

Public functions

onPlaybackStatsReady

fun onPlaybackStatsReady(
    eventTime: AnalyticsListener.EventTime!,
    playbackStats: PlaybackStats!
): Unit

Called when a playback session ends and its PlaybackStats are ready.

Parameters
eventTime: AnalyticsListener.EventTime!

The EventTime at which the playback session started. Can be used to identify the playback session.

playbackStats: PlaybackStats!

The PlaybackStats for the ended playback session.