Package com.adcolony.sdk
Class AdColonyAdView
- java.lang.Object
-
- FrameLayout
-
- com.adcolony.sdk.AdColonyAdView
-
public class AdColonyAdView extends FrameLayoutAn ad object returned via the AdColonyAdViewListener's onRequestFilled callback. Represents a display advertisement to be inserted into your layout.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandestroy()Call this method when you have finished using this AdColonyAdView and have removed it from your layout.AdColonyAdSizegetAdSize()Used to retrieve the AdColonyAdSize object associated with this view.AdColonyAdViewListenergetListener()Used to retrieve the AdColonyAdViewListener object associated with this view.java.lang.StringgetZoneId()Used to retrieve the zone identifier for the zone that this ad was requested from.voidsetListener(AdColonyAdViewListener listener)Sets this ad views ad listener, if you wish to use a different one than originally passed inAdColony.requestAdView(String, AdColonyAdViewListener, AdColonyAdSize).
-
-
-
Method Detail
-
destroy
public boolean destroy()
Call this method when you have finished using this AdColonyAdView and have removed it from your layout. Breaks down the object, removes internal references, and allows for memory to be freed. The object should no longer be used after this call.- Returns:
- whether or not the command was successful. Will return false if destroy() has already been called.
-
getZoneId
public java.lang.String getZoneId()
Used to retrieve the zone identifier for the zone that this ad was requested from.- Returns:
- the unique zone identifier tied to this ad.
-
setListener
public void setListener(AdColonyAdViewListener listener)
Sets this ad views ad listener, if you wish to use a different one than originally passed inAdColony.requestAdView(String, AdColonyAdViewListener, AdColonyAdSize).- Parameters:
listener- the AdColonyAdViewListener object to be associated with this view.
-
getListener
public AdColonyAdViewListener getListener()
Used to retrieve the AdColonyAdViewListener object associated with this view.- Returns:
- the AdColonyAdViewListener object associated with this view.
-
getAdSize
public AdColonyAdSize getAdSize()
Used to retrieve the AdColonyAdSize object associated with this view.- Returns:
- the AdColonyAdSize object associated with this view.
-
-