| interface info |
| public interface MediaContent |
| Native ad multimedia content. |
| Return | Method |
| float | getAspectRatio() Obtains the aspect ratio of the multimedia that populates MediaView. |
| Drawable | getImage() Obtains the main image to be displayed if the multimedia content does not contain a video. |
| void | setImage(Drawable drawable) Sets the main image to be displayed if the multimedia content does not contain a video. |
| Method |
| public float getAspectRatio() |
| Obtains the aspect ratio of the multimedia that populates MediaView. |
Return
| type | desc |
| float | Aspect 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
| type | desc |
| Drawable | Main 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 name | Parameter desc |
| drawable | Main image to be displayed. |