NativeAd.Image
这个类有新版本。查看 最新版本。

Image creative.

扩展:Object
应用安装包:ads
构造函数
NativeAd.Image(String, int, int)
public NativeAd.Image(String url, int width, int height)
参数描述
url
width
height
类方法
fromJSONObject(JSONObject)

Parses an Image from the given JSON object.

public static Image fromJSONObject(JSONObject dataObject)
参数描述
dataObjectThe json object
Returns
Parsed Image or null if failed
实例方法
getUrl()

Gets the url of the image.

public String getUrl()
Returns
Absolute url of the image
getWidth()

Gets the width of the image.

public int getWidth()
Returns
Width of the image in dp
getHeight()

Gets the height of the image.

public int getHeight()
Returns
Height of the image in dp