Modifier and Type | Class | Description |
---|---|---|
static interface |
AdsLoader.OverlayInfo.Purpose |
Modifier and Type | Field | Description |
---|---|---|
int |
purpose |
The purpose of the overlay view.
|
static int |
PURPOSE_CLOSE_AD |
Purpose for ad close buttons overlaying the player.
|
static int |
PURPOSE_CONTROLS |
Purpose for playback controls overlaying the player.
|
static int |
PURPOSE_NOT_VISIBLE |
Purpose for overlays that are not visible.
|
static int |
PURPOSE_OTHER |
Purpose for other overlays.
|
String |
reasonDetail |
An optional, detailed reason that the overlay view is needed.
|
View |
view |
The overlay view.
|
Constructor | Description |
---|---|
OverlayInfo(View view,
int purpose) |
Creates a new overlay info.
|
OverlayInfo(View view,
int purpose,
String detailedReason) |
Creates a new overlay info.
|
public static final int PURPOSE_CONTROLS
public static final int PURPOSE_CLOSE_AD
public static final int PURPOSE_OTHER
public static final int PURPOSE_NOT_VISIBLE
public final View view
@Purpose public final int purpose
@Nullable public final String reasonDetail
public OverlayInfo(View view, @Purpose int purpose)
view
- The view that is overlaying the player.purpose
- The purpose of the view.public OverlayInfo(View view, @Purpose int purpose, @Nullable String detailedReason)
view
- The view that is overlaying the player.purpose
- The purpose of the view.detailedReason
- An optional, detailed reason that the view is on top of the player. See
the documentation for the AdsLoader
implementation for more information on this
string's formatting.