public final class

AdOverlayInfo.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.media3.common.AdOverlayInfo.Builder

Overview

A builder for AdOverlayInfo instances.

Summary

Constructors
publicBuilder(View view, int purpose)

Creates a new builder.

Methods
public AdOverlayInfobuild()

Returns a new AdOverlayInfo instance with the current builder values.

public AdOverlayInfo.BuildersetDetailedReason(java.lang.String detailedReason)

Sets an optional, detailed reason that the view is on top of the player.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder(View view, int purpose)

Creates a new builder.

Parameters:

view: The view that is overlaying the player.
purpose: The purpose of the view.

Methods

public AdOverlayInfo.Builder setDetailedReason(java.lang.String detailedReason)

Sets an optional, detailed reason that the view is on top of the player.

Returns:

This builder, for convenience.

public AdOverlayInfo build()

Returns a new AdOverlayInfo instance with the current builder values.