NativeAd.Image

abstract class NativeAd.Image


用于表示图片的对象。它包含图片的网址、包含图片本身的可绘制对象,以及表示图片像素与 dp 的比率的比例。

摘要

公共构造函数

公共函数

abstract Drawable!

返回表示图片的可绘制对象。

abstract Double

返回此图片的缩放比例,表示像素与 dp 的比率。

abstract Uri!

返回此图片的 URI。

公共构造函数

图片

Image()

公共函数

getDrawable

abstract fun getDrawable(): Drawable!

返回表示图片的可绘制对象。

getScale

abstract fun getScale(): Double

返回此图片的缩放比例,表示像素与 dp 的比率。

getUri

abstract fun getUri(): Uri!

返回此图片的 URI。