public class ChartboostBanner extends RelativeLayout implements BannerView, ChartboostAd, BannerTypeTraitCallback
| Constructor and Description |
|---|
ChartboostBanner(Context context) |
ChartboostBanner(Context context,
AttributeSet attrs) |
ChartboostBanner(Context context,
BannerView view,
java.lang.String location,
BannerSize size,
ChartboostBannerListener listener) |
ChartboostBanner(Context context,
java.lang.String location,
BannerSize size,
ChartboostBannerListener listener) |
| Modifier and Type | Method and Description |
|---|---|
Sdk.Command |
attachBannerToSDKCommand(Sdk.Command cmd) |
void |
cache() |
void |
cache(java.lang.String bidResponse) |
void |
detachBanner() |
void |
didCacheBanner(java.lang.String location,
ChartboostCacheError error) |
void |
didClickBanner(java.lang.String location,
ChartboostClickError error) |
void |
didShowBanner(java.lang.String location,
ChartboostShowError error) |
int |
getBannerHeight() |
int |
getBannerWidth() |
DisplayMetrics |
getDisplayMetrics() |
java.lang.String |
getLocation() |
Sdk.Command |
getSdkCommand() |
ViewGroup.LayoutParams |
getViewLayoutParams() |
boolean |
isBelowLollipop() |
java.lang.Boolean |
isCached() |
void |
onBannerCacheFail(java.lang.String location,
ChartboostCacheError error) |
void |
onBannerClickFail(java.lang.String location,
ChartboostClickError error) |
void |
onBannerShowFail(java.lang.String location,
ChartboostShowError error) |
void |
onWindowFocusChanged(boolean hasWindowFocus) |
void |
setAutomaticallyRefreshesContent(boolean autoRefreshEnabled) |
void |
setListener(ChartboostBannerListener listener) |
void |
setViewLayoutParams(ViewGroup.LayoutParams params) |
void |
show() |
public ChartboostBanner(Context context)
public ChartboostBanner(Context context,
AttributeSet attrs)
public ChartboostBanner(Context context,
java.lang.String location,
BannerSize size,
ChartboostBannerListener listener)
public ChartboostBanner(Context context,
BannerView view,
java.lang.String location,
BannerSize size,
ChartboostBannerListener listener)
public int getBannerHeight()
getBannerHeight in interface BannerViewpublic int getBannerWidth()
getBannerWidth in interface BannerViewpublic void detachBanner()
detachBanner in interface BannerViewpublic boolean isBelowLollipop()
isBelowLollipop in interface BannerViewpublic Sdk.Command getSdkCommand()
getSdkCommand in interface BannerViewpublic Sdk.Command attachBannerToSDKCommand(Sdk.Command cmd)
attachBannerToSDKCommand in interface BannerViewpublic void setAutomaticallyRefreshesContent(boolean autoRefreshEnabled)
setAutomaticallyRefreshesContent in interface BannerViewpublic void setListener(ChartboostBannerListener listener)
public java.lang.String getLocation()
getLocation in interface ChartboostAdpublic DisplayMetrics getDisplayMetrics()
getDisplayMetrics in interface BannerViewpublic ViewGroup.LayoutParams getViewLayoutParams()
getViewLayoutParams in interface BannerViewpublic void setViewLayoutParams(ViewGroup.LayoutParams params)
setViewLayoutParams in interface BannerViewpublic java.lang.Boolean isCached()
isCached in interface ChartboostAdpublic void cache()
cache in interface ChartboostAdpublic void cache(java.lang.String bidResponse)
cache in interface ChartboostAdpublic void show()
show in interface ChartboostAdpublic void didClickBanner(java.lang.String location,
ChartboostClickError error)
didClickBanner in interface BannerTypeTraitCallbackpublic void didCacheBanner(java.lang.String location,
ChartboostCacheError error)
didCacheBanner in interface BannerTypeTraitCallbackpublic void onBannerShowFail(java.lang.String location,
ChartboostShowError error)
onBannerShowFail in interface BannerTypeTraitCallbackpublic void onBannerCacheFail(java.lang.String location,
ChartboostCacheError error)
onBannerCacheFail in interface BannerTypeTraitCallbackpublic void onBannerClickFail(java.lang.String location,
ChartboostClickError error)
onBannerClickFail in interface BannerTypeTraitCallbackpublic void didShowBanner(java.lang.String location,
ChartboostShowError error)
didShowBanner in interface BannerTypeTraitCallbackpublic void onWindowFocusChanged(boolean hasWindowFocus)