# 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)

*** ** * ** ***


```
public final class AdPlaybackState.SkipInfo
```

<br />

*** ** * ** ***

Information about skipping an ad.

## Summary

| ### Public fields |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/media3/common/AdPlaybackState.SkipInfo#labelId()` The identifier for the label to be displayed in the UI, or null if unset. |
| `final long` | `https://developer.android.com/reference/androidx/media3/common/AdPlaybackState.SkipInfo#skipDurationUs()` The duration for which the skip control should be shown, in microseconds, or `https://developer.android.com/reference/androidx/media3/common/C#TIME_UNSET()` if it should be shown until the ad ends. |
| `final long` | `https://developer.android.com/reference/androidx/media3/common/AdPlaybackState.SkipInfo#skipOffsetUs()` The time after which the ad is skippable, in microseconds. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/common/AdPlaybackState.SkipInfo#SkipInfo(long,long,java.lang.String)(long skipOffsetUs, long skipDurationUs, @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html labelId)` Creates an instance. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/media3/common/AdPlaybackState.SkipInfo#equals(java.lang.Object)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Object.html o)` |
| `static https://developer.android.com/reference/androidx/media3/common/AdPlaybackState.SkipInfo` | `https://developer.android.com/reference/androidx/media3/common/AdPlaybackState.SkipInfo#fromBundle(android.os.Bundle)(https://developer.android.com/reference/android/os/Bundle.html bundle)` Restores a `SkipInfo` from a `https://developer.android.com/reference/android/os/Bundle.html`. |
| `int` | `https://developer.android.com/reference/androidx/media3/common/AdPlaybackState.SkipInfo#hashCode()()` |
| `https://developer.android.com/reference/android/os/Bundle.html` | `https://developer.android.com/reference/androidx/media3/common/AdPlaybackState.SkipInfo#toBundle()()` Returns a `https://developer.android.com/reference/android/os/Bundle.html` representing the information stored in this object. |

## Public fields

### labelId

```
public final @Nullable String labelId
```

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

### skipDurationUs

```
public final long skipDurationUs
```

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

### skipOffsetUs

```
public final long skipOffsetUs
```

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

## Public constructors

### SkipInfo

```
public SkipInfo(long skipOffsetUs, long skipDurationUs, @Nullable String labelId)
```

Creates an instance.

## Public methods

### equals

```
public boolean equals(@Nullable Object o)
```

### fromBundle

```
public static AdPlaybackState.SkipInfo fromBundle(Bundle bundle)
```

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

### hashCode

```
public int hashCode()
```

### toBundle

```
public Bundle toBundle()
```

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