NativeAd.Image

public abstract class NativeAd.Image


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

This method is deprecated. Use com.google.android.gms.ads.nativead.NativeAd

Public methods

abstract Drawable

This method is deprecated. Use com.google.android.gms.ads.nativead.NativeAd

final int

This method is deprecated. Use com.google.android.gms.ads.nativead.NativeAd

abstract double

This method is deprecated. Use com.google.android.gms.ads.nativead.NativeAd

abstract Uri

This method is deprecated. Use com.google.android.gms.ads.nativead.NativeAd

final int

This method is deprecated. Use com.google.android.gms.ads.nativead.NativeAd

Public constructors

Image

public Image()

Public methods

getDrawable

public abstract Drawable getDrawable()

Returns the drawable representing the image.

getHeight

public final int getHeight()

Returns height of the image. Default size is -1, if not available.

getScale

public abstract double getScale()

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

getUri

public abstract Uri getUri()

Returns the URI for this image.

getWidth

public final int getWidth()

The width of the image. Default size is -1, if not available.