public final class FeedAdView
extends FeedView
FeedAdView(Context, String) when creating the view via code| Constructor and Description |
|---|
FeedAdView(android.content.Context context,
android.util.AttributeSet attrs) |
FeedAdView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr) |
FeedAdView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes) |
FeedAdView(android.content.Context context,
java.lang.String placementId)
Programmatically create a new instance of the ad view using this constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPlacementId()
Gets the placement ID that is set for this ad view
|
void |
setShutterDrawable(android.graphics.drawable.Drawable shutterDrawable)
Sets the drawable to use as an overlay for the video player while the SDK is loading.
|
public FeedAdView(android.content.Context context,
@NonNull
java.lang.String placementId)
context - the context of the viewplacementId - the placement id the view is registered for.
See FeedAd.validatePlacementId(String) for information about valid placement ids.java.lang.IllegalArgumentException - when the placement id is not validpublic FeedAdView(android.content.Context context,
android.util.AttributeSet attrs)
public FeedAdView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr)
public FeedAdView(android.content.Context context,
android.util.AttributeSet attrs,
int defStyleAttr,
int defStyleRes)
@NonNull public java.lang.String getPlacementId()
public void setShutterDrawable(@Nullable
android.graphics.drawable.Drawable shutterDrawable)
shutterDrawable - the drawable to use as overlay or null to clear a previous value