public class SomaUnityPlugin extends java.lang.Object implements AdListenerInterface, BannerStateListener
Constructor and Description |
---|
SomaUnityPlugin()
Creates an instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
asyncLoadNewBanner() |
void |
asyncLoadNewInterstitial() |
static SomaUnityPlugin |
getInstance() |
void |
hideView() |
void |
initBannerView(int publisherId,
int adSpaceId,
int adDimension,
int position) |
void |
initInterstitialAd(int publisherId,
int adSpaceId) |
void |
onReceiveAd(AdDownloaderInterface sender,
ReceivedBannerInterface receivedBanner)
Called when a new banner has been received
and is about to be displayed.
|
void |
onWillCloseLandingPage(BaseView sender)
Called when a new banner is about
to close the landing page.
|
void |
onWillOpenLandingPage(BaseView sender)
Called when a new banner has been clicked
and is about to display the landing page.
|
void |
setAdType(int adType) |
void |
setAge(int age) |
void |
setAutoReloadEnabled(boolean autoReloadEnabled) |
void |
setAutoReloadFrequency(int autoReloadFrequency) |
void |
setCity(java.lang.String city) |
void |
setCOPPA(java.lang.Boolean value) |
void |
setInterstitialLocation(double latitude,
double longitude)
Sets the value of parameter latitude and longitude to UserSettings.
|
void |
setInterstitialLocationUpdateEnabled(boolean value)
This method enables the automatic update of Location in InterstitialAd
Enabling this method will ignore the manual latitude and longitude updates.
|
void |
setKeywordList(java.lang.String keywordList) |
void |
setLocationUpdateEnabled(boolean value) |
void |
setRegion(java.lang.String region) |
void |
setSearchQuery(java.lang.String searchQuery) |
void |
setUserGender(int userGender) |
void |
showView() |
public static SomaUnityPlugin getInstance()
public void initBannerView(int publisherId, int adSpaceId, int adDimension, int position)
public final void hideView()
public final void showView()
public final void initInterstitialAd(int publisherId, int adSpaceId)
public final void asyncLoadNewInterstitial()
public final void asyncLoadNewBanner()
public final void setLocationUpdateEnabled(boolean value)
public final void setInterstitialLocationUpdateEnabled(boolean value)
public final void setInterstitialLocation(double latitude, double longitude)
public final void setAdType(int adType)
public final void setAge(int age)
public final void setCity(java.lang.String city)
public final void setKeywordList(java.lang.String keywordList)
public final void setSearchQuery(java.lang.String searchQuery)
public final void setUserGender(int userGender)
public final void setRegion(java.lang.String region)
public final void setCOPPA(java.lang.Boolean value)
public final void setAutoReloadFrequency(int autoReloadFrequency)
public final void setAutoReloadEnabled(boolean autoReloadEnabled)
public void onReceiveAd(AdDownloaderInterface sender, ReceivedBannerInterface receivedBanner)
AdListenerInterface
onReceiveAd
in interface AdListenerInterface
public void onWillOpenLandingPage(BaseView sender)
BannerStateListener
onWillOpenLandingPage
in interface BannerStateListener
sender
- BaseView
public void onWillCloseLandingPage(BaseView sender)
BannerStateListener
onWillCloseLandingPage
in interface BannerStateListener
sender
- BaseView