目录

interface info
public interface MediaContent
Native ad multimedia content.

Public Method Summary

ReturnMethod
floatgetAspectRatio()
Obtains the aspect ratio of the multimedia that populates MediaView.
DrawablegetImage()
Obtains the main image to be displayed if the multimedia content does not contain a video.
voidsetImage(Drawable drawable)
Sets the main image to be displayed if the multimedia content does not contain a video.

Public Methods

Method
public float getAspectRatio()
Obtains the aspect ratio of the multimedia that populates MediaView.

Return

typedesc
floatAspect ratio of the multimedia that populates MediaView.
Method
public Drawable getImage()
Obtains the main image to be displayed if the multimedia content does not contain a video.

Return

typedesc
DrawableMain image to be displayed if the multimedia content does not contain a video.
Method
public void setImage(Drawable drawable)
Sets the main image to be displayed if the multimedia content does not contain a video.

Parameters

Parameter nameParameter desc
drawableMain image to be displayed.