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

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

Public properties

abstract Drawable?

Returns the drawable representing the image.

Int

Returns height of 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.

Int

The width of the image.

Public constructors

Image

Image()

Public properties

drawable

abstract val drawableDrawable?

Returns the drawable representing the image.

height

val heightInt

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

scale

abstract val scaleDouble

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

uri

abstract val uriUri?

Returns the URI for this image.

width

val widthInt

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