NativeAd.Image
有此級別的更新版本。前往查看 最新版本。

Image creative.

延伸:Object
套件:ads
類別方式
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