-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public @interfaceAdGem.State
-
Field Summary
Fields Modifier and Type Field Description public final static intSTATE_ERRORpublic final static intSTATE_DISABLEDpublic final static intSTATE_NEEDS_INITIALIZATIONpublic final static intSTATE_INITIALIZINGpublic final static intSTATE_NEEDS_CAMPAIGN_REFRESHpublic final static intSTATE_REFRESHING_CAMPAIGNpublic final static intSTATE_NEEDS_DOWNLOADpublic final static intSTATE_DOWNLOADINGpublic final static intSTATE_READY
-
Method Summary
Modifier and Type Method Description static AdGemget()Obtains global instance of the AdGem framework. booleanisInterstitialAdReady()Identifies whether AdGem is ready to show an interstitial advertisement via showInterstitialAd. abstract intgetInterstitialAdState()booleanisRewardedAdReady()Identifies whether AdGem is ready to show a rewarded advertisement via showRewardedAd. abstract intgetRewardedAdState()abstract booleanisOfferWallReady()Identifies whether AdGem is ready to show offer wall via the showOfferWall}. abstract intgetOfferWallState()Gets detailed state of the offer wall abstract voidregisterCallback(AdGemCallback callback)Registers callback to receive AdGem SDK events. abstract voidunregisterCallback(AdGemCallback callback)Unregisters AdGem events callback. abstract voidregisterOfferWallCallback(OfferWallCallback callback)Registers callback to receive updates about the offer wall. abstract voidunregisterOfferWallCallback(OfferWallCallback callback)Unregisters AdGem events callback. abstract voidshowInterstitialAd(Context context)Shows interstitial advertisement. abstract voidshowRewardedAd(Context context)Shows rewarded advertisement. abstract voidshowOfferWall(Context context)Shows offer wall. abstract ErrorgetError()Returns last known error. abstract voidsetPlayerMetaData(PlayerMetadata metaData)Sets additional metadata specific to the user of this application. -
-
Method Detail
-
isInterstitialAdReady
boolean isInterstitialAdReady()
Identifies whether AdGem is ready to show an interstitial advertisement via showInterstitialAd.
-
getInterstitialAdState
abstract int getInterstitialAdState()
-
isRewardedAdReady
boolean isRewardedAdReady()
Identifies whether AdGem is ready to show a rewarded advertisement via showRewardedAd.
-
getRewardedAdState
abstract int getRewardedAdState()
-
isOfferWallReady
abstract boolean isOfferWallReady()
Identifies whether AdGem is ready to show offer wall via the showOfferWall}.
-
getOfferWallState
abstract int getOfferWallState()
Gets detailed state of the offer wall
-
registerCallback
@MainThread() abstract void registerCallback(AdGemCallback callback)
Registers callback to receive AdGem SDK events. Each registered callback will receive corresponding events.
- Parameters:
callback- instance of callback interface to receive events from AdGem.
-
unregisterCallback
@MainThread() abstract void unregisterCallback(AdGemCallback callback)
Unregisters AdGem events callback.
- Parameters:
callback- instance of AdGemCallback previously registered via registerCallback.
-
registerOfferWallCallback
@MainThread() abstract void registerOfferWallCallback(OfferWallCallback callback)
Registers callback to receive updates about the offer wall. Each registered callback will receive corresponding events.
- Parameters:
callback- instance of callback to receive offer wall events from AdGem.
-
unregisterOfferWallCallback
@MainThread() abstract void unregisterOfferWallCallback(OfferWallCallback callback)
Unregisters AdGem events callback.
- Parameters:
callback- instance of OfferWallCallback previously registered via registerOfferWallCallback.
-
showInterstitialAd
abstract void showInterstitialAd(Context context)
Shows interstitial advertisement. AdGem will notify about completion via onInterstitialAdClosed.
If interstitial ad is not in ready state, then nothing is shown.
-
showRewardedAd
abstract void showRewardedAd(Context context)
Shows rewarded advertisement. AdGem will notify about completion via onRewardedAdComplete.
If a rewarded ad is not in ready state, then nothing is shown.
-
showOfferWall
abstract void showOfferWall(Context context)
Shows offer wall. Offer wall status callbacks (including even when offer wall is closed) will be delivered via the OfferWallCallback.
-
setPlayerMetaData
abstract void setPlayerMetaData(PlayerMetadata metaData)
Sets additional metadata specific to the user of this application.
- Parameters:
metaData- extra information about the player.
-
-
-
-