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