Class VServAds
java.lang.Object
com.codename1.impl.FullScreenAdService
com.codename1.impl.VServAds
Deprecated.
The v-serv ad service implements full screen ads
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidDeprecated.Removes the pending ad data so we can fetch a new adprotected ConnectionRequestDeprecated.Creates a new request for an adprotected booleanfailed()Deprecated.Returns true if the connection failedprotected StringDeprecated.Returns the URL for the adintDeprecated.Returns
Deprecated.Returns
Deprecated.Returns
Deprecated.Returns
protected ComponentDeprecated.Component representing a given adDeprecated.Returns
protected booleanDeprecated.Just checks if an ad is already fetchedbooleanDeprecated.Returns
voidsetCategory(int category) Deprecated.Parameters
voidsetCountryCode(String countryCode) Deprecated.Parameters
voidDeprecated.Parameters
voidsetNetworkCode(String networkCode) Deprecated.Parameters
voidDeprecated.Parameters
Methods inherited from class FullScreenAdService
bindTransitionAd, getAdDisplayTime, getTimeout, isAllowWithoutNetwork, isScaleMode, setAdDisplayTime, setAllowSkipping, setAllowWithoutNetwork, setScaleMode, setTimeout, showWelcomeAdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
CAT_ID_ACTION_ADVENTURE
public static final int CAT_ID_ACTION_ADVENTUREDeprecated.- See Also:
-
CAT_ID_SPORTS
public static final int CAT_ID_SPORTSDeprecated.- See Also:
-
CAT_ID_MOVIES
public static final int CAT_ID_MOVIESDeprecated.- See Also:
-
CAT_ID_KIDS
public static final int CAT_ID_KIDSDeprecated.- See Also:
-
CAT_ID_RACING
public static final int CAT_ID_RACINGDeprecated.- See Also:
-
CAT_ID_ARCADE
public static final int CAT_ID_ARCADEDeprecated.- See Also:
-
CAT_ID_ADULT
public static final int CAT_ID_ADULTDeprecated.- See Also:
-
CAT_ID_STRATEGY
public static final int CAT_ID_STRATEGYDeprecated.- See Also:
-
CAT_ID_TRAVEL
public static final int CAT_ID_TRAVELDeprecated.- See Also:
-
CAT_ID_EDUCATION
public static final int CAT_ID_EDUCATIONDeprecated.- See Also:
-
CAT_ID_PRODUCTIVITY
public static final int CAT_ID_PRODUCTIVITYDeprecated.- See Also:
-
CAT_ID_ENTERTAINMENT
public static final int CAT_ID_ENTERTAINMENTDeprecated.- See Also:
-
CAT_ID_MULTIMEDIA
public static final int CAT_ID_MULTIMEDIADeprecated.- See Also:
-
CAT_ID_SPIRITUAL
public static final int CAT_ID_SPIRITUALDeprecated.- See Also:
-
CAT_ID_UTILITY
public static final int CAT_ID_UTILITYDeprecated.- See Also:
-
CAT_ID_SOCIAL_NETWORKING
public static final int CAT_ID_SOCIAL_NETWORKINGDeprecated.- See Also:
-
CAT_ID_HEALTH
public static final int CAT_ID_HEALTHDeprecated.- See Also:
-
CAT_ID_OTHERS
public static final int CAT_ID_OTHERSDeprecated.- See Also:
-
-
Constructor Details
-
VServAds
public VServAds()Deprecated.
-
-
Method Details
-
createAdRequest
Deprecated.Creates a new request for an ad
Returns
the network operation
- Specified by:
createAdRequestin classFullScreenAdService
-
hasPendingAd
protected boolean hasPendingAd()Deprecated.Description copied from class:FullScreenAdServiceJust checks if an ad is already fetched
Returns
returns true if an ad is already waiting in the queue
- Specified by:
hasPendingAdin classFullScreenAdService
-
clearPendingAd
protected void clearPendingAd()Deprecated.Removes the pending ad data so we can fetch a new ad- Specified by:
clearPendingAdin classFullScreenAdService
-
getPendingAd
Deprecated.Component representing a given ad
Returns
the ad that is currently pending
- Specified by:
getPendingAdin classFullScreenAdService
-
getAdDestination
Deprecated.Returns the URL for the ad
Returns
the ad URL
- Specified by:
getAdDestinationin classFullScreenAdService
-
failed
protected boolean failed()Deprecated.Returns true if the connection failed- Specified by:
failedin classFullScreenAdService
-
getCountryCode
-
setCountryCode
Deprecated.Parameters
countryCode: the countryCode to set
-
getNetworkCode
-
setNetworkCode
Deprecated.Parameters
networkCode: the networkCode to set
-
getLocale
-
setLocale
-
getCategory
public int getCategory()Deprecated.Returns
the category
-
setCategory
public void setCategory(int category) Deprecated.Parameters
category: the category to set
-
getZoneId
-
setZoneId
-
isAllowSkipping
public boolean isAllowSkipping()Deprecated.Returns
the allowSkipping
- Overrides:
isAllowSkippingin classFullScreenAdService
-
AdManagerinstead.