public final class FlurryAdNative extends Object
Constructor and Description |
---|
FlurryAdNative(Context context,
String adSpace)
Create an instance of FlurryAdNative.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the ad object and releases all associated resources.
|
void |
fetchAd()
Fetches and prepares an ad for display.
|
String |
getAdSpace()
get the adspace of the ad object
|
FlurryAdNativeAsset |
getAsset(String assetName)
Retrieves an ad asset given the asset name.
|
List<FlurryAdNativeAsset> |
getAssetList()
Retrieves the list of ad assets for the ad.
|
int |
getStyle()
Returns the style of the ad, corresponding to the styles listed in #FlurryAdNativeStyle.
|
boolean |
isExpired()
Indicates whether or not the ad is expired.
|
boolean |
isReady()
Indicates whether or not the ad is ready for display.
|
boolean |
isVideoAd()
Identify if this is a video ad, accordingly prepare your ad view.
|
void |
removeTrackingView()
Remove the tracking view for the ad.
|
void |
setCollapsableTrackingView(View trackingView,
View collapseView)
Set the collapsable tracking view for the ad.
|
void |
setExpandableTrackingView(View trackingView,
View linkView)
Set the expandable tracking view for the ad.
|
void |
setListener(FlurryAdNativeListener listener)
Set the lister for asynchronous ad serving.
|
void |
setSupportedStyles(List<Integer> supportedStyles)
Set the style(s) of native ads that the application supports.
|
void |
setTargeting(FlurryAdTargeting targeting)
Set the targeting for this ad.
|
void |
setTrackingView(View trackingView)
Set the tracking view for the ad.
|
public void destroy()
public void setListener(FlurryAdNativeListener listener)
listener
- Your implementation of the ad listener.public void setTargeting(FlurryAdTargeting targeting)
targeting
- The ad targeting.public void setSupportedStyles(List<Integer> supportedStyles)
supportedStyles
- The supported styles.public void fetchAd()
public boolean isReady()
public boolean isExpired()
public void setTrackingView(View trackingView)
trackingView
- The tracking view for the ad.public void setExpandableTrackingView(View trackingView, View linkView)
trackingView
- The tracking view for the ad.linkView
- The click view for taking to the linked ad.public void setCollapsableTrackingView(View trackingView, View collapseView)
trackingView
- The tracking view for the ad.collapseView
- The click view for collapsing the unit.public void removeTrackingView()
public int getStyle()
public FlurryAdNativeAsset getAsset(String assetName)
public List<FlurryAdNativeAsset> getAssetList()
public boolean isVideoAd()
public String getAdSpace()