NativeAd.Image

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

Public functions

abstract Drawable!

Returns the drawable representing the image.

abstract Double

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

abstract Uri!

Returns the URI for this image.

Public constructors

Image

Image()

Public functions

getDrawable

abstract fun getDrawable(): Drawable!

Returns the drawable representing the image.

getScale

abstract fun getScale(): Double

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

getUri

abstract fun getUri(): Uri!

Returns the URI for this image.