NativeAd.Image

public abstract class NativeAd.Image


A native ad image asset.

Summary

Public constructors

Public methods

abstract Drawable
final int

Returns height of the image.

abstract double

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

abstract Uri
final int

Returns width of the image.

Public constructors

Image

public Image()

Public methods

getDrawable

public abstract Drawable getDrawable()

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()

getWidth

public final int getWidth()

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