NativeAd.Image
Es ist eine neuere Version dieser Klasse verfügbar. Sieh sie dir an mit der aktuellsten Version.

Image creative.

Erweiterungen:Object
Package:ads
Konstruktoren
NativeAd.Image(String, int, int)
public NativeAd.Image(String url, int width, int height)
ParameterBeschreibung
url
width
height
Klassenmethoden
fromJSONObject(JSONObject)

Parses an Image from the given JSON object.

public static Image fromJSONObject(JSONObject dataObject)
ParameterBeschreibung
dataObjectThe json object
Returns
Parsed Image or null if failed
Instance-Methoden
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