public class VServAds extends FullScreenAdService
| Modifier and Type | Field and Description |
|---|---|
static int |
CAT_ID_ACTION_ADVENTURE |
static int |
CAT_ID_ADULT |
static int |
CAT_ID_ARCADE |
static int |
CAT_ID_EDUCATION |
static int |
CAT_ID_ENTERTAINMENT |
static int |
CAT_ID_HEALTH |
static int |
CAT_ID_KIDS |
static int |
CAT_ID_MOVIES |
static int |
CAT_ID_MULTIMEDIA |
static int |
CAT_ID_OTHERS |
static int |
CAT_ID_PRODUCTIVITY |
static int |
CAT_ID_RACING |
static int |
CAT_ID_SOCIAL_NETWORKING |
static int |
CAT_ID_SPIRITUAL |
static int |
CAT_ID_SPORTS |
static int |
CAT_ID_STRATEGY |
static int |
CAT_ID_TRAVEL |
static int |
CAT_ID_UTILITY |
| Constructor and Description |
|---|
VServAds() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearPendingAd()
Removes the pending ad data so we can fetch a new ad
|
protected ConnectionRequest |
createAdRequest()
Creates a new request for an ad
|
protected boolean |
failed()
Returns true if the connection failed
|
protected String |
getAdDestination()
Returns the URL for the ad
|
int |
getCategory() |
String |
getCountryCode() |
String |
getLocale() |
String |
getNetworkCode() |
protected Component |
getPendingAd()
Component representing a given ad
|
String |
getZoneId() |
protected boolean |
hasPendingAd()
Just checks if an ad is already fetched
|
boolean |
isAllowSkipping() |
void |
setCategory(int category) |
void |
setCountryCode(String countryCode) |
void |
setLocale(String locale) |
void |
setNetworkCode(String networkCode) |
void |
setZoneId(String zoneId) |
bindTransitionAd, getAdDisplayTime, getTimeout, isAllowWithoutNetwork, isScaleMode, setAdDisplayTime, setAllowSkipping, setAllowWithoutNetwork, setScaleMode, setTimeout, showWelcomeAdpublic static final int CAT_ID_ACTION_ADVENTURE
public static final int CAT_ID_SPORTS
public static final int CAT_ID_MOVIES
public static final int CAT_ID_KIDS
public static final int CAT_ID_RACING
public static final int CAT_ID_ARCADE
public static final int CAT_ID_ADULT
public static final int CAT_ID_STRATEGY
public static final int CAT_ID_TRAVEL
public static final int CAT_ID_EDUCATION
public static final int CAT_ID_PRODUCTIVITY
public static final int CAT_ID_ENTERTAINMENT
public static final int CAT_ID_MULTIMEDIA
public static final int CAT_ID_SPIRITUAL
public static final int CAT_ID_UTILITY
public static final int CAT_ID_SOCIAL_NETWORKING
public static final int CAT_ID_HEALTH
public static final int CAT_ID_OTHERS
protected ConnectionRequest createAdRequest()
createAdRequest in class FullScreenAdServiceprotected boolean hasPendingAd()
FullScreenAdServicehasPendingAd in class FullScreenAdServiceprotected void clearPendingAd()
clearPendingAd in class FullScreenAdServiceprotected Component getPendingAd()
getPendingAd in class FullScreenAdServiceprotected String getAdDestination()
getAdDestination in class FullScreenAdServiceprotected boolean failed()
failed in class FullScreenAdServicepublic String getCountryCode()
public void setCountryCode(String countryCode)
countryCode - the countryCode to setpublic String getNetworkCode()
public void setNetworkCode(String networkCode)
networkCode - the networkCode to setpublic String getLocale()
public void setLocale(String locale)
locale - the locale to setpublic int getCategory()
public void setCategory(int category)
category - the category to setpublic String getZoneId()
public void setZoneId(String zoneId)
zoneId - the zoneId to setpublic boolean isAllowSkipping()
isAllowSkipping in class FullScreenAdServiceCopyright © 2022. All rights reserved.