Back to Exoplayer

AdOverlayInfo (ExoPlayer library)

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

latest5.9 KB
Original Source

Package com.google.android.exoplayer2.ui

Class AdOverlayInfo


[@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 Class Summary

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

Field Summary

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

Constructor Summary

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.

|

Method Summary

- 

Methods inherited from class java.lang.Object

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

Field Detail

- 

PURPOSE_CONTROLS

public static final int PURPOSE_CONTROLS

Deprecated.

Purpose for playback controls overlaying the player. See Also:Constant Field Values

- 

PURPOSE_CLOSE_AD

public static final int PURPOSE_CLOSE_AD

Deprecated.

Purpose for ad close buttons overlaying the player. See Also:Constant Field Values

- 

PURPOSE_OTHER

public static final int PURPOSE_OTHER

Deprecated.

Purpose for other overlays. See Also:Constant Field Values

- 

PURPOSE_NOT_VISIBLE

public static final int PURPOSE_NOT_VISIBLE

Deprecated.

Purpose for overlays that are not visible. See Also:Constant Field Values

- 

view

public final[View](https://developer.android.com/reference/android/view/View.html "class or interface in android.view")view

Deprecated.

The overlay view.

- 

purpose

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

- 

reasonDetail

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

Constructor Detail

- 

AdOverlayInfo

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

- 

AdOverlayInfo

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