# HlsMediaPlaylist.Interstitial.Builder

Artifact: [androidx.media3:media3-exoplayer-hls](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.java+class:androidx.media3.exoplayer.hls.playlist.HlsMediaPlaylist.Interstitial.Builder)

*** ** * ** ***


```
class HlsMediaPlaylist.Interstitial.Builder
```

<br />

*** ** * ** ***

Builder for `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial`.

See RFC 8216bis, section 4.4.5.1 for how to consolidate multiple interstitials with the same `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial#id()`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#Builder(java.lang.String)(id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Creates the builder. |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial?` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#build()()` Builds and returns a new `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial` instance or null if validation of the properties fails. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#setAssetListUri(android.net.Uri)(assetListUri: https://developer.android.com/reference/android/net/Uri.html?)` Sets the asset list URI. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#setAssetUri(android.net.Uri)(assetUri: https://developer.android.com/reference/android/net/Uri.html?)` Sets the asset URI. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#setClientDefinedAttributes(java.util.List<androidx.media3.exoplayer.hls.playlist.HlsMediaPlaylist.ClientDefinedAttribute>)( clientDefinedAttributes: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute!>! )` Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#setContentMayVary(java.lang.Boolean)(contentMayVary: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html?)` Sets whether the content may vary between clients. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#setCue(java.util.List<java.lang.String>)( cue: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<@https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.CueTriggerType https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>! )` Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.CueTriggerType`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#setDurationUs(long)(durationUs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Sets the duration, in microseconds. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#setEndDateUnixUs(long)(endDateUnixUs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Sets the end date as a unix epoch timestamp, in microseconds. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#setEndOnNext(boolean)(endOnNext: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Sets whether the interstitial ends on the start time of the next interstitial. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#setPlannedDurationUs(long)(plannedDurationUs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Sets the planned duration, in microseconds. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#setPlayoutLimitUs(long)(playoutLimitUs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Sets the play out limit, in microseconds. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#setRestrictions(java.util.List<java.lang.String>)( restrictions: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<@https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.NavigationRestriction https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>! )` Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.NavigationRestriction`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#setResumeOffsetUs(long)(resumeOffsetUs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Sets the resume offset, in microseconds. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#setSkipControlDurationUs(long)(skipControlDurationUs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Sets the skip control duration, in microseconds. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#setSkipControlLabelId(java.lang.String)(skipControlLabelId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)` Sets the skip control label ID. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#setSkipControlOffsetUs(long)(skipControlOffsetUs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Sets the skip control offset, in microseconds. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#setSnapTypes(java.util.List<java.lang.String>)( snapTypes: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<@https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.SnapType https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>! )` Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.SnapType`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#setStartDateUnixUs(long)(startDateUnixUs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Sets the start date as a unix epoch timestamp, in microseconds. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#setTimelineOccupies(java.lang.String)( @https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.TimelineOccupiesType timelineOccupies: @https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.TimelineOccupiesType https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html? )` Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.TimelineOccupiesType`. |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder#setTimelineStyle(java.lang.String)( @https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.TimelineStyleType timelineStyle: @https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.TimelineStyleType https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html? )` Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.TimelineStyleType`. |

## Public constructors

### Builder

```
Builder(id: String!)
```

Creates the builder.

| Parameters |
|---|---|
| `id: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The id. |

## Public functions

### build

```
fun build(): HlsMediaPlaylist.Interstitial?
```

Builds and returns a new `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial` instance or null if validation of the properties fails. The properties are considered invalid, if the start date is missing or both asset URI and asset list URI are set at the same time.

### setAssetListUri

```
@CanIgnoreReturnValue
fun setAssetListUri(assetListUri: Uri?): HlsMediaPlaylist.Interstitial.Builder!
```

Sets the asset list URI.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if called with a non-null value that is different to the value previously set. |

### setAssetUri

```
@CanIgnoreReturnValue
fun setAssetUri(assetUri: Uri?): HlsMediaPlaylist.Interstitial.Builder!
```

Sets the asset URI.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if called with a non-null value that is different to the value previously set. |

### setClientDefinedAttributes

```
@CanIgnoreReturnValue
fun setClientDefinedAttributes(
    clientDefinedAttributes: (Mutable)List<HlsMediaPlaylist.ClientDefinedAttribute!>!
): HlsMediaPlaylist.Interstitial.Builder!
```

Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute`.

Equal duplicates are ignored, new attributes are added to those already set.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if called with a list containing a client defined attribute that is not equal with an attribute previously set with the same `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.ClientDefinedAttribute#name()`. |

### setContentMayVary

```
@CanIgnoreReturnValue
fun setContentMayVary(contentMayVary: Boolean?): HlsMediaPlaylist.Interstitial.Builder!
```

Sets whether the content may vary between clients.

The default value is `true` .

| Parameters |
|---|---|
| `contentMayVary: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html?` | Whether the content may vary. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.Builder!` | This builder. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if attempting to change a value that is already set to a different value. |

### setCue

```
@CanIgnoreReturnValue
fun setCue(
    cue: (Mutable)List<@HlsMediaPlaylist.Interstitial.CueTriggerType String!>!
): HlsMediaPlaylist.Interstitial.Builder!
```

Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.CueTriggerType`.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if called with a value different to `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` and different to the value previously set. |

### setDurationUs

```
@CanIgnoreReturnValue
fun setDurationUs(durationUs: Long): HlsMediaPlaylist.Interstitial.Builder!
```

Sets the duration, in microseconds.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if called with a value different to `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` and different to the value previously set. |

### setEndDateUnixUs

```
@CanIgnoreReturnValue
fun setEndDateUnixUs(endDateUnixUs: Long): HlsMediaPlaylist.Interstitial.Builder!
```

Sets the end date as a unix epoch timestamp, in microseconds.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if called with a value different to `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` and different to the value previously set. |

### setEndOnNext

```
@CanIgnoreReturnValue
fun setEndOnNext(endOnNext: Boolean): HlsMediaPlaylist.Interstitial.Builder!
```

Sets whether the interstitial ends on the start time of the next interstitial.

Once set to true, it can't be reset to false and doing so would be ignored.

### setPlannedDurationUs

```
@CanIgnoreReturnValue
fun setPlannedDurationUs(plannedDurationUs: Long): HlsMediaPlaylist.Interstitial.Builder!
```

Sets the planned duration, in microseconds.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if called with a value different to `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` and different to the value previously set. |

### setPlayoutLimitUs

```
@CanIgnoreReturnValue
fun setPlayoutLimitUs(playoutLimitUs: Long): HlsMediaPlaylist.Interstitial.Builder!
```

Sets the play out limit, in microseconds.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if called with a value different to `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` and different to the value previously set. |

### setRestrictions

```
@CanIgnoreReturnValue
fun setRestrictions(
    restrictions: (Mutable)List<@HlsMediaPlaylist.Interstitial.NavigationRestriction String!>!
): HlsMediaPlaylist.Interstitial.Builder!
```

Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.NavigationRestriction`.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if called with a non-empty list of restrictions that is not equal to the non-empty list that was previously set. |

### setResumeOffsetUs

```
@CanIgnoreReturnValue
fun setResumeOffsetUs(resumeOffsetUs: Long): HlsMediaPlaylist.Interstitial.Builder!
```

Sets the resume offset, in microseconds.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if called with a value different to `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` and different to the value previously set. |

### setSkipControlDurationUs

```
@CanIgnoreReturnValue
fun setSkipControlDurationUs(skipControlDurationUs: Long): HlsMediaPlaylist.Interstitial.Builder!
```

Sets the skip control duration, in microseconds.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if called with a value different to `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` and different to the value previously set. |

### setSkipControlLabelId

```
@CanIgnoreReturnValue
fun setSkipControlLabelId(skipControlLabelId: String?): HlsMediaPlaylist.Interstitial.Builder!
```

Sets the skip control label ID.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if called with a non-null value that is different to the value previously set. |

### setSkipControlOffsetUs

```
@CanIgnoreReturnValue
fun setSkipControlOffsetUs(skipControlOffsetUs: Long): HlsMediaPlaylist.Interstitial.Builder!
```

Sets the skip control offset, in microseconds.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if called with a value different to `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` and different to the value previously set. |

### setSnapTypes

```
@CanIgnoreReturnValue
fun setSnapTypes(
    snapTypes: (Mutable)List<@HlsMediaPlaylist.Interstitial.SnapType String!>!
): HlsMediaPlaylist.Interstitial.Builder!
```

Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.SnapType`.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if called with a non-empty list of snap types that is not equal to the non-empty list that was previously set. |

### setStartDateUnixUs

```
@CanIgnoreReturnValue
fun setStartDateUnixUs(startDateUnixUs: Long): HlsMediaPlaylist.Interstitial.Builder!
```

Sets the start date as a unix epoch timestamp, in microseconds.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if called with a value different to `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` and different to the value previously set. |

### setTimelineOccupies

```
@CanIgnoreReturnValue
fun setTimelineOccupies(
    @HlsMediaPlaylist.Interstitial.TimelineOccupiesType timelineOccupies: @HlsMediaPlaylist.Interstitial.TimelineOccupiesType String?
): HlsMediaPlaylist.Interstitial.Builder!
```

Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.TimelineOccupiesType`.

The default value is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial#TIMELINE_OCCUPIES_POINT()`.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if attempting to change a value that is already set to a different value. |

### setTimelineStyle

```
@CanIgnoreReturnValue
fun setTimelineStyle(
    @HlsMediaPlaylist.Interstitial.TimelineStyleType timelineStyle: @HlsMediaPlaylist.Interstitial.TimelineStyleType String?
): HlsMediaPlaylist.Interstitial.Builder!
```

Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial.TimelineStyleType`. The default value is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/hls/playlist/HlsMediaPlaylist.Interstitial#TIMELINE_STYLE_HIGHLIGHT()`.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if attempting to change from a non-default value to a different non-default value. |