NativeAd.Image
Há uma versão mais recente desta classe disponível. Confira. a versão mais recente.

Image creative.

Estende:Object
Pacote:ads
Construtores
Image(String, int, int)
public Image(String url, int width, int height)
ParâmetroDescrição
url
width
height
Métodos de classe
fromJSONObject(JSONObject)

Parses an Image from the given JSON object.

public static Image fromJSONObject(JSONObject dataObject)
ParâmetroDescrição
dataObjectThe json object
Returns
Parsed Image or null if failed
Métodos de instância
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