public static abstract class

NativeAd.Image

extends Object
java.lang.Object
   ↳ com.google.android.gms.ads.formats.NativeAd.Image

Class Overview

An object used to represent an image. It contains the url of the image, a drawable which contains the image itself, and a scale which denotes the ratio of pixels to dp for the image.

Summary

Public Constructors
NativeAd.Image()
Public Methods
abstract Drawable getDrawable()
Returns the drawable representing the image.
abstract double getScale()
Returns the scale for this image, which denotes the ratio of pixels to dp.
abstract Uri getUri()
Returns the URI for this image.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public NativeAd.Image ()

Public Methods

public abstract Drawable getDrawable ()

Returns the drawable representing the image.

Returns
Drawable

public abstract double getScale ()

Returns the scale for this image, which denotes the ratio of pixels to dp.

Returns
double

public abstract Uri getUri ()

Returns the URI for this image.

Returns
Uri