NativeAd.Image
เวอร์ชั่นที่ใหม่กว่าของคลาสนี้พร้อมแล้ว ตรวจสอบได้ เวอร์ชั่นล่าสุด

Image creative.

ขยาย:Object
แพ็คเกจ:ads
ผู้สร้าง
Image(String, int, int)
public 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