# AdPlaybackState.SkipInfo

# AdPlaybackState.SkipInfo

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/common/AdPlaybackState.SkipInfo "View this page in Java")

<br />

```
class AdPlaybackState.SkipInfo
```

<br />

*** ** * ** ***

Information about skipping an ad.

## Summary

|                                                                                                                                                                                                                        ### Public constructors                                                                                                                                                                                                                        |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SkipInfo](https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState.SkipInfo#SkipInfo(long,long,java.lang.String))`(skipOffsetUs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, skipDurationUs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`, labelId: `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?)` Creates an instance. |

|                                                            ### Public functions                                                             |
|---------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                         | [equals](https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState.SkipInfo#equals(java.lang.Object))`(o: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)`                                                                                                                |
| `java-static `[AdPlaybackState.SkipInfo](https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState.SkipInfo)`!` | [fromBundle](https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState.SkipInfo#fromBundle(android.os.Bundle))`(bundle: `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)`!)` Restores a`SkipInfo`from a[Bundle](https://developer.android.com/reference/android/os/Bundle.html). |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                 | [hashCode](https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState.SkipInfo#hashCode())`()`                                                                                                                                                                                                             |
| [Bundle](https://developer.android.com/reference/android/os/Bundle.html)`!`                                                                 | [toBundle](https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState.SkipInfo#toBundle())`()` Returns a[Bundle](https://developer.android.com/reference/android/os/Bundle.html)representing the information stored in this object.                                                                        |

|                                ### Public properties                                 |
|--------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`?` | [labelId](https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState.SkipInfo#labelId()) The identifier for the label to be displayed in the UI, or null if unset.                                                                                                                                                            |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)        | [skipDurationUs](https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState.SkipInfo#skipDurationUs()) The duration for which the skip control should be shown, in microseconds, or[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET())if it should be shown until the ad ends. |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)        | [skipOffsetUs](https://developer.android.com/reference/kotlin/androidx/media3/common/AdPlaybackState.SkipInfo#skipOffsetUs()) The time after which the ad is skippable, in microseconds.                                                                                                                                                                 |

## Public constructors

### SkipInfo

```
SkipInfo(skipOffsetUs: Long, skipDurationUs: Long, labelId: String?)
```

Creates an instance.  

## Public functions

### equals

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

### fromBundle

```
java-static fun fromBundle(bundle: Bundle!): AdPlaybackState.SkipInfo!
```

Restores a`SkipInfo`from a[Bundle](https://developer.android.com/reference/android/os/Bundle.html).  

### hashCode

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

### toBundle

```
fun toBundle(): Bundle!
```

Returns a[Bundle](https://developer.android.com/reference/android/os/Bundle.html)representing the information stored in this object.  

## Public properties

### labelId

```
val labelId: String?
```

The identifier for the label to be displayed in the UI, or null if unset.  

### skipDurationUs

```
val skipDurationUs: Long
```

The duration for which the skip control should be shown, in microseconds, or[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET())if it should be shown until the ad ends.  

### skipOffsetUs

```
val skipOffsetUs: Long
```

The time after which the ad is skippable, in microseconds.