docs/doc/reference/com/google/android/exoplayer2/ui/AdOverlayInfo.Builder.html
Package com.google.android.exoplayer2.ui
Enclosing class:AdOverlayInfo
public static final classAdOverlayInfo.Builderextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
A builder for AdOverlayInfo instances.
Constructors | Constructor | Description |
| --- | --- |
| Builder(View view, @com.google.android.exoplayer2.ui.AdOverlayInfo.Purpose int purpose) |
Creates a new builder.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| AdOverlayInfo | build() |
Returns a new AdOverlayInfo instance with the current builder values.
|
| AdOverlayInfo.Builder | setDetailedReason(String detailedReason) |
Sets an optional, detailed reason that the view is on top of the player.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public Builder([View](https://developer.android.com/reference/android/view/View.html "class or interface in android.view")view,[@Purpose](AdOverlayInfo.Purpose.html "annotation in com.google.android.exoplayer2.ui")@com.google.android.exoplayer2.ui.AdOverlayInfo.Purpose int purpose)
Creates a new builder.
Parameters:view - The view that is overlaying the player.purpose - The purpose of the view.
-
@CanIgnoreReturnValue
public[AdOverlayInfo.Builder](AdOverlayInfo.Builder.html "class in com.google.android.exoplayer2.ui")setDetailedReason(@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")detailedReason)
Sets an optional, detailed reason that the view is on top of the player. Returns:This builder, for convenience.
-
public[AdOverlayInfo](AdOverlayInfo.html "class in com.google.android.exoplayer2.ui")build()
Returns a new AdOverlayInfo instance with the current builder values.