docs/doc/reference/com/google/android/exoplayer2/ui/AdOverlayInfo.html
Package com.google.android.exoplayer2.ui
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classAdOverlayInfoextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
Provides information about an overlay view shown on top of an ad view group.
Nested Classes | Modifier and Type | Class | Description |
| --- | --- | --- |
| static class | AdOverlayInfo.Builder |
Deprecated.
A builder for AdOverlayInfo instances.
|
| static interface | AdOverlayInfo.Purpose |
Deprecated.
The purpose of the overlay. |
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| @com.google.android.exoplayer2.ui.AdOverlayInfo.Purpose int | purpose |
Deprecated.
The purpose of the overlay view.
|
| static int | PURPOSE_CLOSE_AD |
Deprecated.
Purpose for ad close buttons overlaying the player.
|
| static int | PURPOSE_CONTROLS |
Deprecated.
Purpose for playback controls overlaying the player.
|
| static int | PURPOSE_NOT_VISIBLE |
Deprecated.
Purpose for overlays that are not visible.
|
| static int | PURPOSE_OTHER |
Deprecated.
Purpose for other overlays.
|
| String | reasonDetail |
Deprecated.
An optional, detailed reason that the overlay view is needed.
|
| View | view |
Deprecated.
The overlay view. |
Constructors | Constructor | Description |
| --- | --- |
| AdOverlayInfo(View view, @com.google.android.exoplayer2.ui.AdOverlayInfo.Purpose int purpose) |
Deprecated.
Use AdOverlayInfo.Builder instead.
|
| AdOverlayInfo(View view, @com.google.android.exoplayer2.ui.AdOverlayInfo.Purpose int purpose, String detailedReason) |
Deprecated.
Use AdOverlayInfo.Builder instead.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static final int PURPOSE_CONTROLS
Deprecated.
Purpose for playback controls overlaying the player. See Also:Constant Field Values
-
public static final int PURPOSE_CLOSE_AD
Deprecated.
Purpose for ad close buttons overlaying the player. See Also:Constant Field Values
-
public static final int PURPOSE_OTHER
Deprecated.
Purpose for other overlays. See Also:Constant Field Values
-
public static final int PURPOSE_NOT_VISIBLE
Deprecated.
Purpose for overlays that are not visible. See Also:Constant Field Values
-
public final[View](https://developer.android.com/reference/android/view/View.html "class or interface in android.view")view
Deprecated.
The overlay view.
-
[@Purpose](AdOverlayInfo.Purpose.html "annotation in com.google.android.exoplayer2.ui")public final @com.google.android.exoplayer2.ui.AdOverlayInfo.Purpose int purpose
Deprecated.
The purpose of the overlay view.
-
@Nullable
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")reasonDetail
Deprecated.
An optional, detailed reason that the overlay view is needed.
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public AdOverlayInfo([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)
Deprecated.
Use AdOverlayInfo.Builder instead.
-
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public AdOverlayInfo([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,
@Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")detailedReason)
Deprecated.
Use AdOverlayInfo.Builder instead.