# Cue.Builder

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/text/Cue.java+class:androidx.media3.common.text.Cue.Builder)

*** ** * ** ***


```
@UnstableApi
public final class Cue.Builder
```

<br />

*** ** * ** ***

A builder for `https://developer.android.com/reference/androidx/media3/common/text/Cue` objects.

## Summary

| ### Public fields |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/graphics/Bitmap.html` | `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#bitmap()` |
| `float` | `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#bitmapHeight()` |
| `float` | `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#line()` |
| `int` | `@https://developer.android.com/reference/androidx/media3/common/text/Cue.AnchorType https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#lineAnchor()` |
| `int` | `@https://developer.android.com/reference/androidx/media3/common/text/Cue.LineType https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#lineType()` |
| `float` | `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#position()` |
| `int` | `@https://developer.android.com/reference/androidx/media3/common/text/Cue.AnchorType https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#positionAnchor()` |
| `float` | `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#size()` |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#text()` |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/text/Layout.Alignment.html` | `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#textAlignment()` |
| `float` | `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#textSize()` |
| `int` | `@https://developer.android.com/reference/androidx/media3/common/text/Cue.TextSizeType https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#textSizeType()` |
| `int` | `@https://developer.android.com/reference/androidx/media3/common/text/Cue.VerticalType https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#verticalType()` |
| `@https://developer.android.com/reference/androidx/annotation/ColorInt int` | `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#windowColor()` |
| `int` | `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#zIndex()` |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#Builder()()` |

| ### Public methods |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue` | `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#build()()` Build the cue. |
| `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#clearWindowColor()()` Sets `https://developer.android.com/reference/androidx/media3/common/text/Cue#windowColorSet()` to false. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/graphics/Bitmap.html` | `@https://checkerframework.org/api/org/checkerframework/dataflow/qual/Pure.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#getBitmap()()` Gets the cue image. |
| `float` | `@https://checkerframework.org/api/org/checkerframework/dataflow/qual/Pure.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#getBitmapHeight()()` Gets the bitmap height as a fraction of the viewport size. |
| `float` | `@https://checkerframework.org/api/org/checkerframework/dataflow/qual/Pure.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#getLine()()` Gets the position of the `lineAnchor` of the cue box within the viewport in the direction orthogonal to the writing direction. |
| `int` | `@https://checkerframework.org/api/org/checkerframework/dataflow/qual/Pure.html @https://developer.android.com/reference/androidx/media3/common/text/Cue.AnchorType https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#getLineAnchor()()` Gets the cue box anchor positioned by `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setLine(float,int)`. |
| `int` | `@https://checkerframework.org/api/org/checkerframework/dataflow/qual/Pure.html @https://developer.android.com/reference/androidx/media3/common/text/Cue.LineType https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#getLineType()()` Gets the type of the value of `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#getLine()`. |
| `float` | `@https://checkerframework.org/api/org/checkerframework/dataflow/qual/Pure.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#getPosition()()` Gets the fractional position of the `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setPositionAnchor(int)` of the cue box within the viewport in the direction orthogonal to `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setLine(float,int)`. |
| `int` | `@https://checkerframework.org/api/org/checkerframework/dataflow/qual/Pure.html @https://developer.android.com/reference/androidx/media3/common/text/Cue.AnchorType https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#getPositionAnchor()()` Gets the cue box anchor positioned by `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setPosition(float)`. |
| `float` | `@https://checkerframework.org/api/org/checkerframework/dataflow/qual/Pure.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#getSize()()` Gets the size of the cue box in the writing direction specified as a fraction of the viewport size in that direction. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `@https://checkerframework.org/api/org/checkerframework/dataflow/qual/Pure.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#getText()()` Gets the cue text. |
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/text/Layout.Alignment.html` | `@https://checkerframework.org/api/org/checkerframework/dataflow/qual/Pure.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#getTextAlignment()()` Gets the alignment of the cue text within the cue box, or null if the alignment is undefined. |
| `float` | `@https://checkerframework.org/api/org/checkerframework/dataflow/qual/Pure.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#getTextSize()()` Gets the default text size for this cue's text. |
| `int` | `@https://checkerframework.org/api/org/checkerframework/dataflow/qual/Pure.html @https://developer.android.com/reference/androidx/media3/common/text/Cue.TextSizeType https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#getTextSizeType()()` Gets the default text size type for this cue's text. |
| `int` | `@https://checkerframework.org/api/org/checkerframework/dataflow/qual/Pure.html @https://developer.android.com/reference/androidx/media3/common/text/Cue.VerticalType https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#getVerticalType()()` Gets the vertical formatting for this Cue. |
| `@https://developer.android.com/reference/androidx/annotation/ColorInt int` | `@https://checkerframework.org/api/org/checkerframework/dataflow/qual/Pure.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#getWindowColor()()` Gets the fill color of the window. |
| `int` | `@https://checkerframework.org/api/org/checkerframework/dataflow/qual/Pure.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#getZIndex()()` Gets the zIndex for this Cue. |
| `boolean` | `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#isWindowColorSet()()` Returns true if the fill color of the window is set. |
| `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setBitmap(android.graphics.Bitmap)(https://developer.android.com/reference/android/graphics/Bitmap.html bitmap)` Sets the cue image. |
| `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setBitmapHeight(float)(float bitmapHeight)` Sets the bitmap height as a fraction of the viewport size. |
| `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setLine(float,int)(float line, @https://developer.android.com/reference/androidx/media3/common/text/Cue.LineType int lineType)` Sets the position of the cue box within the viewport in the direction orthogonal to the writing direction. |
| `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setLineAnchor(int)(@https://developer.android.com/reference/androidx/media3/common/text/Cue.AnchorType int lineAnchor)` Sets the cue box anchor positioned by `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setLine(float,int)`. |
| `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setMultiRowAlignment(android.text.Layout.Alignment)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/text/Layout.Alignment.html multiRowAlignment)` Sets the multi-row alignment of the cue. |
| `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setPosition(float)(float position)` Sets the fractional position of the `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setPositionAnchor(int)` of the cue box within the viewport in the direction orthogonal to `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setLine(float,int)`. |
| `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setPositionAnchor(int)(@https://developer.android.com/reference/androidx/media3/common/text/Cue.AnchorType int positionAnchor)` Sets the cue box anchor positioned by `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setPosition(float)`. |
| `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setShearDegrees(float)(float shearDegrees)` Sets the shear angle for this Cue. |
| `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setSize(float)(float size)` Sets the size of the cue box in the writing direction specified as a fraction of the viewport size in that direction. |
| `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setText(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence.html text)` Sets the cue text. |
| `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setTextAlignment(android.text.Layout.Alignment)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/text/Layout.Alignment.html textAlignment)` Sets the alignment of the cue text within the cue box. |
| `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setTextSize(float,int)(float textSize, @https://developer.android.com/reference/androidx/media3/common/text/Cue.TextSizeType int textSizeType)` Sets the default text size and type for this cue's text. |
| `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setVerticalType(int)(@https://developer.android.com/reference/androidx/media3/common/text/Cue.VerticalType int verticalType)` Sets the vertical formatting for this Cue. |
| `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setWindowColor(int)(@https://developer.android.com/reference/androidx/annotation/ColorInt int windowColor)` Sets the fill color of the window. |
| `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder` | `@https://checkerframework.org/api/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setZIndex(int)(int zIndex)` Sets the zIndex for this Cue. |

## Public fields

### bitmap

```
public @Nullable Bitmap bitmap
```

### bitmapHeight

```
public float bitmapHeight
```

### line

```
public float line
```

### lineAnchor

```
@Cue.AnchorType
public int lineAnchor
```

### lineType

```
@Cue.LineType
public int lineType
```

### position

```
public float position
```

### positionAnchor

```
@Cue.AnchorType
public int positionAnchor
```

### size

```
public float size
```

### text

```
public @Nullable CharSequence text
```

### textAlignment

```
public @Nullable Layout.Alignment textAlignment
```

### textSize

```
public float textSize
```

### textSizeType

```
@Cue.TextSizeType
public int textSizeType
```

### verticalType

```
@Cue.VerticalType
public int verticalType
```

### windowColor

```
public @ColorInt int windowColor
```

### zIndex

```
public int zIndex
```

## Public constructors

### Builder

```
public Builder()
```

## Public methods

### build

```
public Cue build()
```

Build the cue.

### clearWindowColor

```
@CanIgnoreReturnValue
public Cue.Builder clearWindowColor()
```

Sets `https://developer.android.com/reference/androidx/media3/common/text/Cue#windowColorSet()` to false.

### getBitmap

```
@Pure
public @Nullable Bitmap getBitmap()
```

Gets the cue image.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#bitmap()` |   |

### getBitmapHeight

```
@Pure
public float getBitmapHeight()
```

Gets the bitmap height as a fraction of the viewport size.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#bitmapHeight()` |   |

### getLine

```
@Pure
public float getLine()
```

Gets the position of the `lineAnchor` of the cue box within the viewport in the direction orthogonal to the writing direction.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#line()` |   |

### getLineAnchor

```
@Pure
@Cue.AnchorType
public int getLineAnchor()
```

Gets the cue box anchor positioned by `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setLine(float,int)`.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#lineAnchor()` |   |

### getLineType

```
@Pure
@Cue.LineType
public int getLineType()
```

Gets the type of the value of `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#getLine()`.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#lineType()` |   |

### getPosition

```
@Pure
public float getPosition()
```

Gets the fractional position of the `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setPositionAnchor(int)` of the cue box within the viewport in the direction orthogonal to `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setLine(float,int)`.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#position()` |   |

### getPositionAnchor

```
@Pure
@Cue.AnchorType
public int getPositionAnchor()
```

Gets the cue box anchor positioned by `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setPosition(float)`.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#positionAnchor()` |   |

### getSize

```
@Pure
public float getSize()
```

Gets the size of the cue box in the writing direction specified as a fraction of the viewport size in that direction.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#size()` |   |

### getText

```
@Pure
public @Nullable CharSequence getText()
```

Gets the cue text.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#text()` |   |

### getTextAlignment

```
@Pure
public @Nullable Layout.Alignment getTextAlignment()
```

Gets the alignment of the cue text within the cue box, or null if the alignment is undefined.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#textAlignment()` |   |

### getTextSize

```
@Pure
public float getTextSize()
```

Gets the default text size for this cue's text.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#textSize()` |   |

### getTextSizeType

```
@Pure
@Cue.TextSizeType
public int getTextSizeType()
```

Gets the default text size type for this cue's text.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#textSizeType()` |   |

### getVerticalType

```
@Pure
@Cue.VerticalType
public int getVerticalType()
```

Gets the vertical formatting for this Cue.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#verticalType()` |   |

### getWindowColor

```
@Pure
public @ColorInt int getWindowColor()
```

Gets the fill color of the window.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#windowColor()` |   |

### getZIndex

```
@Pure
public int getZIndex()
```

Gets the zIndex for this Cue.

### isWindowColorSet

```
public boolean isWindowColorSet()
```

Returns true if the fill color of the window is set.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#windowColorSet()` |   |

### setBitmap

```
@CanIgnoreReturnValue
public Cue.Builder setBitmap(Bitmap bitmap)
```

Sets the cue image.

Note that this will also set the `text` to null.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#bitmap()` |   |

### setBitmapHeight

```
@CanIgnoreReturnValue
public Cue.Builder setBitmapHeight(float bitmapHeight)
```

Sets the bitmap height as a fraction of the viewport size.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#bitmapHeight()` |   |

### setLine

```
@CanIgnoreReturnValue
public Cue.Builder setLine(float line, @Cue.LineType int lineType)
```

Sets the position of the cue box within the viewport in the direction orthogonal to the writing direction.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#line()` |   |
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#lineType()` |   |

### setLineAnchor

```
@CanIgnoreReturnValue
public Cue.Builder setLineAnchor(@Cue.AnchorType int lineAnchor)
```

Sets the cue box anchor positioned by `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setLine(float,int)`.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#lineAnchor()` |   |

### setMultiRowAlignment

```
@CanIgnoreReturnValue
public Cue.Builder setMultiRowAlignment(@Nullable Layout.Alignment multiRowAlignment)
```

Sets the multi-row alignment of the cue.

Passing null means the alignment is undefined.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#multiRowAlignment()` |   |

### setPosition

```
@CanIgnoreReturnValue
public Cue.Builder setPosition(float position)
```

Sets the fractional position of the `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setPositionAnchor(int)` of the cue box within the viewport in the direction orthogonal to `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setLine(float,int)`.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#position()` |   |

### setPositionAnchor

```
@CanIgnoreReturnValue
public Cue.Builder setPositionAnchor(@Cue.AnchorType int positionAnchor)
```

Sets the cue box anchor positioned by `https://developer.android.com/reference/androidx/media3/common/text/Cue.Builder#setPosition(float)`.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#positionAnchor()` |   |

### setShearDegrees

```
@CanIgnoreReturnValue
public Cue.Builder setShearDegrees(float shearDegrees)
```

Sets the shear angle for this Cue.

### setSize

```
@CanIgnoreReturnValue
public Cue.Builder setSize(float size)
```

Sets the size of the cue box in the writing direction specified as a fraction of the viewport size in that direction.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#size()` |   |

### setText

```
@CanIgnoreReturnValue
public Cue.Builder setText(CharSequence text)
```

Sets the cue text.

Note that `text` may be decorated with styling spans.

Note that this will also set the `bitmap` to null.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#text()` |   |

### setTextAlignment

```
@CanIgnoreReturnValue
public Cue.Builder setTextAlignment(@Nullable Layout.Alignment textAlignment)
```

Sets the alignment of the cue text within the cue box.

Passing null means the alignment is undefined.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#textAlignment()` |   |

### setTextSize

```
@CanIgnoreReturnValue
public Cue.Builder setTextSize(float textSize, @Cue.TextSizeType int textSizeType)
```

Sets the default text size and type for this cue's text.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#textSize()` |   |
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#textSizeType()` |   |

### setVerticalType

```
@CanIgnoreReturnValue
public Cue.Builder setVerticalType(@Cue.VerticalType int verticalType)
```

Sets the vertical formatting for this Cue.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#verticalType()` |   |

### setWindowColor

```
@CanIgnoreReturnValue
public Cue.Builder setWindowColor(@ColorInt int windowColor)
```

Sets the fill color of the window.

Also sets `https://developer.android.com/reference/androidx/media3/common/text/Cue#windowColorSet()` to true.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#windowColor()` |   |
| `https://developer.android.com/reference/androidx/media3/common/text/Cue#windowColorSet()` |   |

### setZIndex

```
@CanIgnoreReturnValue
public Cue.Builder setZIndex(int zIndex)
```

Sets the zIndex for this Cue.