Class NativeAd
java.lang.Object
com.codename1.ads.NativeAd
The assets of a native ad, loaded by NativeAdLoader. A native ad lets you
render the advertiser's content with your own components so it blends with
the surrounding UI. Not every field is populated for every ad; check for
null before use.
Native ad support is an optional provider capability. When the active
provider does not support it, NativeAdLoader reports the format as
unsupported.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe advertiser name, may be null.getBody()The ad body text, may be null.The call to action label (e.g. "Install"), may be null.The ad headline, may be null.The URL of the ad icon, may be null.The URL of the main ad image, may be null.doubleThe star rating (0-5), or 0 when not provided.
-
Constructor Details
-
NativeAd
-
-
Method Details
-
getHeadline
The ad headline, may be null. -
getBody
The ad body text, may be null. -
getCallToAction
The call to action label (e.g. "Install"), may be null. -
getAdvertiser
The advertiser name, may be null. -
getIconUrl
The URL of the ad icon, may be null. -
getImageUrl
The URL of the main ad image, may be null. -
getStarRating
public double getStarRating()The star rating (0-5), or 0 when not provided.
-