Back to Exoplayer

AdOverlayInfo.Builder (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/ui/AdOverlayInfo.Builder.html

latest2.8 KB
Original Source

Package com.google.android.exoplayer2.ui

Class AdOverlayInfo.Builder


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.

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | Builder​(View view, @com.google.android.exoplayer2.ui.AdOverlayInfo.Purpose int purpose) | Creates a new builder. |

Method Summary

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. |

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

- 

Builder

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.

Method Detail

- 

setDetailedReason

@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.

- 

build

public[AdOverlayInfo](AdOverlayInfo.html "class in com.google.android.exoplayer2.ui")build()

Returns a new AdOverlayInfo instance with the current builder values.