public static class NativeAd.Image
extends java.lang.Object
Constructor and Description |
---|
NativeAd.Image(java.lang.String url,
int width,
int height) |
Modifier and Type | Method and Description |
---|---|
static NativeAd.Image |
fromJSONObject(org.json.JSONObject dataObject)
Parses an Image from the given JSON object.
|
int |
getHeight()
Gets the height of the image.
|
java.lang.String |
getUrl()
Gets the url of the image.
|
int |
getWidth()
Gets the width of the image.
|
public NativeAd.Image(java.lang.String url, int width, int height)
public java.lang.String getUrl()
public int getWidth()
public int getHeight()
public static NativeAd.Image fromJSONObject(org.json.JSONObject dataObject)
dataObject
- the json object