AdOverlayInfo
public final class AdOverlayInfo
Provides information about an overlay view shown on top of an ad view group.
Summary
Nested types |
|---|
public final class AdOverlayInfo.BuilderA builder for |
@DocumentedThe purpose of the overlay. |
Constants |
|
|---|---|
static final int |
PURPOSE_CLOSE_AD = 2Purpose for ad close buttons overlaying the player. |
static final int |
PURPOSE_CONTROLS = 1Purpose for playback controls overlaying the player. |
static final int |
Purpose for overlays that are not visible. |
static final int |
PURPOSE_OTHER = 3Purpose for other overlays. |
Public fields |
|
|---|---|
final int |
The purpose of the overlay view. |
final @Nullable String |
An optional, detailed reason that the overlay view is needed. |
final View |
The overlay view. |
Public constructors |
|---|
@UnstableApiThis method is deprecated. Use |
@UnstableApiThis method is deprecated. Use |
Constants
PURPOSE_CLOSE_AD
public static final int PURPOSE_CLOSE_AD = 2
Purpose for ad close buttons overlaying the player.
PURPOSE_CONTROLS
public static final int PURPOSE_CONTROLS = 1
Purpose for playback controls overlaying the player.
PURPOSE_NOT_VISIBLE
public static final int PURPOSE_NOT_VISIBLE = 4
Purpose for overlays that are not visible.
Public fields
reasonDetail
public final @Nullable String reasonDetail
An optional, detailed reason that the overlay view is needed.
Public constructors
AdOverlayInfo
@UnstableApi
publicAdOverlayInfo(
View view,
@AdOverlayInfo.Purpose int purpose,
@Nullable String detailedReason
)