public static interface UnifiedNativeAd.MediaContent
An object representing the media content from the ad that is rendered within the
MediaView
.
Public Method Summary
abstract float |
getAspectRatio()
Returns the aspect ratio of the media populating the
MediaView .
|
abstract Drawable |
getMainImage()
Returns the main image to be displayed if the media content doesn't contain
video.
|
abstract void |
setMainImage(Drawable
drawable)
Sets the optional main image to be displayed if the media content doesn't
contain video.
|
Public Methods
public abstract float getAspectRatio ()
Returns the aspect ratio of the media populating the MediaView
.
public abstract Drawable getMainImage ()
Returns the main image to be displayed if the media content doesn't contain video.
public abstract void setMainImage (Drawable drawable)
Sets the optional main image to be displayed if the media content doesn't contain video.