# PlaybackStats.EventTimeAndFormat

# PlaybackStats.EventTimeAndFormat

Artifact:[androidx.media3:media3-exoplayer](https://developer.android.com/jetpack/androidx/releases/media3)  
[View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/analytics/PlaybackStats.java+class:androidx.media3.exoplayer.analytics.PlaybackStats.EventTimeAndFormat)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/exoplayer/analytics/PlaybackStats.EventTimeAndFormat "View this page in Java")

<br />

```
class PlaybackStats.EventTimeAndFormat
```

<br />

*** ** * ** ***

Stores a format with the event time at which it started being used, or`null`to indicate that no format was used.

## Summary

|                                                                                                                                                                                                                                                                          ### Public constructors                                                                                                                                                                                                                                                                          |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [EventTimeAndFormat](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/analytics/PlaybackStats.EventTimeAndFormat#EventTimeAndFormat(androidx.media3.exoplayer.analytics.AnalyticsListener.EventTime,androidx.media3.common.Format))`(` ` eventTime: `[AnalyticsListener.EventTime](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsListener.EventTime)`!,` ` format: `[Format](https://developer.android.com/reference/kotlin/androidx/media3/common/Format)`?` `)` Creates a new timed format event. |

|                                ### Public functions                                 |
|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/analytics/PlaybackStats.EventTimeAndFormat#equals(java.lang.Object))`(o: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)         | [hashCode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/analytics/PlaybackStats.EventTimeAndFormat#hashCode())`()`                                                                                              |

|                                                              ### Public properties                                                               |
|--------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AnalyticsListener.EventTime](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsListener.EventTime)`!` | [eventTime](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/analytics/PlaybackStats.EventTimeAndFormat#eventTime()) The event time associated with[format](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/analytics/PlaybackStats.EventTimeAndFormat#format()). |
| [Format](https://developer.android.com/reference/kotlin/androidx/media3/common/Format)`?`                                                        | [format](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/analytics/PlaybackStats.EventTimeAndFormat#format()) The format that started being used, or`null`if no format was used.                                                                                                          |

## Public constructors

### EventTimeAndFormat

```
EventTimeAndFormat(
    eventTime: AnalyticsListener.EventTime!,
    format: Format?
)
```

Creates a new timed format event.  

|                                                                          Parameters                                                                           |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------|
| `eventTime: `[AnalyticsListener.EventTime](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsListener.EventTime)`!` | The event time associated with`format`.                            |
| `format: `[Format](https://developer.android.com/reference/kotlin/androidx/media3/common/Format)`?`                                                           | The format that started being used, or`null`if no format was used. |

## Public functions

### equals

```
fun equals(o: Any?): Boolean
```  

### hashCode

```
fun hashCode(): Int
```  

## Public properties

### eventTime

```
val eventTime: AnalyticsListener.EventTime!
```

The event time associated with[format](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/analytics/PlaybackStats.EventTimeAndFormat#format()).  

### format

```
val format: Format?
```

The format that started being used, or`null`if no format was used.