Update annotations
This commit is contained in:
Родитель
e51e72e23a
Коммит
cdc3bbd3a8
|
@ -12,6 +12,8 @@ import com.applovin.mediation.ads.MaxInterstitialAd;
|
|||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
/**
|
||||
* An {@link android.app.Activity} used to show AppLovin MAX interstitial ads.
|
||||
* <p>
|
||||
|
@ -51,7 +53,7 @@ public class InterstitialAdActivity
|
|||
//region MAX Ad Listener
|
||||
|
||||
@Override
|
||||
public void onAdLoaded(final MaxAd ad)
|
||||
public void onAdLoaded(@NonNull final MaxAd ad)
|
||||
{
|
||||
// Interstitial ad is ready to be shown. interstitialAd.isReady() will now return 'true'.
|
||||
logCallback();
|
||||
|
@ -61,7 +63,7 @@ public class InterstitialAdActivity
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onAdLoadFailed(final String adUnitId, final int errorCode)
|
||||
public void onAdLoadFailed(@NonNull final String adUnitId, final int errorCode)
|
||||
{
|
||||
logCallback();
|
||||
|
||||
|
@ -81,7 +83,7 @@ public class InterstitialAdActivity
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onAdDisplayFailed(final MaxAd ad, final int errorCode)
|
||||
public void onAdDisplayFailed(@NonNull final MaxAd ad, final int errorCode)
|
||||
{
|
||||
logCallback();
|
||||
|
||||
|
@ -90,13 +92,13 @@ public class InterstitialAdActivity
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onAdDisplayed(final MaxAd ad) { logCallback(); }
|
||||
public void onAdDisplayed(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdClicked(final MaxAd ad) { logCallback(); }
|
||||
public void onAdClicked(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdHidden(final MaxAd ad)
|
||||
public void onAdHidden(@NonNull final MaxAd ad)
|
||||
{
|
||||
logCallback();
|
||||
|
||||
|
|
|
@ -13,6 +13,8 @@ import com.applovin.mediation.ads.MaxRewardedAd;
|
|||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
/**
|
||||
* An {@link android.app.Activity} used to show AppLovin MAX rewarded ads.
|
||||
* <p>
|
||||
|
@ -52,7 +54,7 @@ public class RewardedAdActivity
|
|||
//region MAX Ad Listener
|
||||
|
||||
@Override
|
||||
public void onAdLoaded(final MaxAd ad)
|
||||
public void onAdLoaded(@NonNull final MaxAd ad)
|
||||
{
|
||||
// Rewarded ad is ready to be shown. rewardedAd.isReady() will now return 'true'
|
||||
logCallback();
|
||||
|
@ -62,7 +64,7 @@ public class RewardedAdActivity
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onAdLoadFailed(final String adUnitId, final int errorCode)
|
||||
public void onAdLoadFailed(@NonNull final String adUnitId, final int errorCode)
|
||||
{
|
||||
logCallback();
|
||||
|
||||
|
@ -82,7 +84,7 @@ public class RewardedAdActivity
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onAdDisplayFailed(final MaxAd ad, final int errorCode)
|
||||
public void onAdDisplayFailed(@NonNull final MaxAd ad, final int errorCode)
|
||||
{
|
||||
logCallback();
|
||||
|
||||
|
@ -91,13 +93,13 @@ public class RewardedAdActivity
|
|||
}
|
||||
|
||||
@Override
|
||||
public void onAdDisplayed(final MaxAd ad) { logCallback(); }
|
||||
public void onAdDisplayed(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdClicked(final MaxAd ad) { logCallback(); }
|
||||
public void onAdClicked(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdHidden(final MaxAd ad)
|
||||
public void onAdHidden(@NonNull final MaxAd ad)
|
||||
{
|
||||
logCallback();
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@ import com.applovin.mediation.MaxAd;
|
|||
import com.applovin.mediation.MaxAdViewAdListener;
|
||||
import com.applovin.mediation.ads.MaxAdView;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
/**
|
||||
* An {@link android.app.Activity} used to show AppLovin MAX banner ads created in the Layout Editor.
|
||||
* <p>
|
||||
|
@ -38,22 +40,22 @@ public class LayoutEditorBannerAdActivity
|
|||
//region MAX Ad Listener
|
||||
|
||||
@Override
|
||||
public void onAdLoaded(final MaxAd ad) { logCallback(); }
|
||||
public void onAdLoaded(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdLoadFailed(final String adUnitId, final int errorCode) { logCallback(); }
|
||||
public void onAdLoadFailed(@NonNull final String adUnitId, final int errorCode) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdHidden(final MaxAd ad) { logCallback(); }
|
||||
public void onAdHidden(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdDisplayFailed(final MaxAd ad, final int errorCode) { logCallback(); }
|
||||
public void onAdDisplayFailed(@NonNull final MaxAd ad, final int errorCode) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdDisplayed(final MaxAd ad) { logCallback(); }
|
||||
public void onAdDisplayed(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdClicked(final MaxAd ad) { logCallback(); }
|
||||
public void onAdClicked(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdExpanded(final MaxAd ad) { logCallback(); }
|
||||
|
|
|
@ -12,6 +12,8 @@ import com.applovin.mediation.MaxAdViewAdListener;
|
|||
import com.applovin.mediation.ads.MaxAdView;
|
||||
import com.applovin.sdk.AppLovinSdkUtils;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
/**
|
||||
* An {@link android.app.Activity} used to show AppLovin MAX banner ads.
|
||||
* <p>
|
||||
|
@ -54,22 +56,22 @@ public class ProgrammaticBannerAdActivity
|
|||
//region MAX Ad Listener
|
||||
|
||||
@Override
|
||||
public void onAdLoaded(final MaxAd ad) { logCallback(); }
|
||||
public void onAdLoaded(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdLoadFailed(final String adUnitId, final int errorCode) { logCallback(); }
|
||||
public void onAdLoadFailed(@NonNull final String adUnitId, final int errorCode) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdHidden(final MaxAd ad) { logCallback(); }
|
||||
public void onAdHidden(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdDisplayFailed(final MaxAd ad, final int errorCode) { logCallback(); }
|
||||
public void onAdDisplayFailed(@NonNull final MaxAd ad, final int errorCode) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdDisplayed(final MaxAd ad) { logCallback(); }
|
||||
public void onAdDisplayed(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdClicked(final MaxAd ad) { logCallback(); }
|
||||
public void onAdClicked(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdExpanded(final MaxAd ad) { logCallback(); }
|
||||
|
|
|
@ -2,6 +2,7 @@ package com.applovin.enterprise.apps.demoapp.ads.max.mrecs;
|
|||
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.applovin.enterprise.apps.demoapp.R;
|
||||
|
@ -40,22 +41,22 @@ public class LayoutEditorMrecAdActivity
|
|||
//region MAX Ad Listener
|
||||
|
||||
@Override
|
||||
public void onAdLoaded(final MaxAd ad) { logCallback(); }
|
||||
public void onAdLoaded(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdLoadFailed(final String adUnitId, final int errorCode) { logCallback(); }
|
||||
public void onAdLoadFailed(@NonNull final String adUnitId, final int errorCode) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdHidden(final MaxAd ad) { logCallback(); }
|
||||
public void onAdHidden(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdDisplayFailed(final MaxAd ad, final int errorCode) { logCallback(); }
|
||||
public void onAdDisplayFailed(@NonNull final MaxAd ad, final int errorCode) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdDisplayed(final MaxAd ad) { logCallback(); }
|
||||
public void onAdDisplayed(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdClicked(final MaxAd ad) { logCallback(); }
|
||||
public void onAdClicked(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdExpanded(final MaxAd ad) { logCallback(); }
|
||||
|
|
|
@ -3,6 +3,7 @@ package com.applovin.enterprise.apps.demoapp.ads.max.mrecs;
|
|||
import android.graphics.Color;
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import androidx.constraintlayout.widget.ConstraintSet;
|
||||
|
@ -70,22 +71,22 @@ public class ProgrammaticMrecAdActivity
|
|||
//region MAX Ad Listener
|
||||
|
||||
@Override
|
||||
public void onAdLoaded(final MaxAd ad) { logCallback(); }
|
||||
public void onAdLoaded(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdLoadFailed(final String adUnitId, final int errorCode) { logCallback(); }
|
||||
public void onAdLoadFailed(@NonNull final String adUnitId, final int errorCode) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdHidden(final MaxAd ad) { logCallback(); }
|
||||
public void onAdHidden(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdDisplayFailed(final MaxAd ad, final int errorCode) { logCallback(); }
|
||||
public void onAdDisplayFailed(@NonNull final MaxAd ad, final int errorCode) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdDisplayed(final MaxAd ad) { logCallback(); }
|
||||
public void onAdDisplayed(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdClicked(final MaxAd ad) { logCallback(); }
|
||||
public void onAdClicked(@NonNull final MaxAd ad) { logCallback(); }
|
||||
|
||||
@Override
|
||||
public void onAdExpanded(final MaxAd ad) { logCallback(); }
|
||||
|
|
|
@ -46,7 +46,7 @@ class InterstitialAdActivity : BaseAdActivity(),
|
|||
|
||||
//region MAX Ad Listener
|
||||
|
||||
override fun onAdLoaded(ad: MaxAd?)
|
||||
override fun onAdLoaded(ad: MaxAd)
|
||||
{
|
||||
// Interstitial ad is ready to be shown. interstitialAd.isReady() will now return 'true'.
|
||||
logCallback()
|
||||
|
@ -55,7 +55,7 @@ class InterstitialAdActivity : BaseAdActivity(),
|
|||
retryAttempt = 0.0
|
||||
}
|
||||
|
||||
override fun onAdLoadFailed(adUnitId: String?, errorCode: Int)
|
||||
override fun onAdLoadFailed(adUnitId: String, errorCode: Int)
|
||||
{
|
||||
logCallback()
|
||||
|
||||
|
@ -67,7 +67,7 @@ class InterstitialAdActivity : BaseAdActivity(),
|
|||
Handler().postDelayed({ interstitialAd.loadAd() }, delayMillis)
|
||||
}
|
||||
|
||||
override fun onAdDisplayFailed(ad: MaxAd?, errorCode: Int)
|
||||
override fun onAdDisplayFailed(ad: MaxAd, errorCode: Int)
|
||||
{
|
||||
logCallback()
|
||||
|
||||
|
@ -75,11 +75,11 @@ class InterstitialAdActivity : BaseAdActivity(),
|
|||
interstitialAd.loadAd()
|
||||
}
|
||||
|
||||
override fun onAdDisplayed(ad: MaxAd?) { logCallback() }
|
||||
override fun onAdDisplayed(ad: MaxAd) { logCallback() }
|
||||
|
||||
override fun onAdClicked(ad: MaxAd?) { logCallback() }
|
||||
override fun onAdClicked(ad: MaxAd) { logCallback() }
|
||||
|
||||
override fun onAdHidden(ad: MaxAd?)
|
||||
override fun onAdHidden(ad: MaxAd)
|
||||
{
|
||||
logCallback()
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ class RewardedAdActivity : BaseAdActivity(),
|
|||
|
||||
//region MAX Ad Listener
|
||||
|
||||
override fun onAdLoaded(ad: MaxAd?)
|
||||
override fun onAdLoaded(ad: MaxAd)
|
||||
{
|
||||
// Rewarded ad is ready to be shown. rewardedAd.isReady() will now return 'true'
|
||||
logCallback()
|
||||
|
@ -56,7 +56,7 @@ class RewardedAdActivity : BaseAdActivity(),
|
|||
retryAttempt = 0.0
|
||||
}
|
||||
|
||||
override fun onAdLoadFailed(adUnitId: String?, errorCode: Int)
|
||||
override fun onAdLoadFailed(adUnitId: String, errorCode: Int)
|
||||
{
|
||||
logCallback()
|
||||
|
||||
|
@ -68,7 +68,7 @@ class RewardedAdActivity : BaseAdActivity(),
|
|||
Handler().postDelayed({ rewardedAd.loadAd() }, delayMillis)
|
||||
}
|
||||
|
||||
override fun onAdDisplayFailed(ad: MaxAd?, errorCode: Int)
|
||||
override fun onAdDisplayFailed(ad: MaxAd, errorCode: Int)
|
||||
{
|
||||
logCallback()
|
||||
|
||||
|
@ -76,11 +76,11 @@ class RewardedAdActivity : BaseAdActivity(),
|
|||
rewardedAd.loadAd()
|
||||
}
|
||||
|
||||
override fun onAdDisplayed(ad: MaxAd?) { logCallback() }
|
||||
override fun onAdDisplayed(ad: MaxAd) { logCallback() }
|
||||
|
||||
override fun onAdClicked(ad: MaxAd?) { logCallback() }
|
||||
override fun onAdClicked(ad: MaxAd) { logCallback() }
|
||||
|
||||
override fun onAdHidden(ad: MaxAd?)
|
||||
override fun onAdHidden(ad: MaxAd)
|
||||
{
|
||||
logCallback()
|
||||
|
||||
|
@ -88,11 +88,11 @@ class RewardedAdActivity : BaseAdActivity(),
|
|||
rewardedAd.loadAd()
|
||||
}
|
||||
|
||||
override fun onRewardedVideoStarted(ad: MaxAd?) { logCallback() }
|
||||
override fun onRewardedVideoStarted(ad: MaxAd) { logCallback() }
|
||||
|
||||
override fun onRewardedVideoCompleted(ad: MaxAd?) { logCallback() }
|
||||
override fun onRewardedVideoCompleted(ad: MaxAd) { logCallback() }
|
||||
|
||||
override fun onUserRewarded(ad: MaxAd?, reward: MaxReward?)
|
||||
override fun onUserRewarded(ad: MaxAd, reward: MaxReward?)
|
||||
{
|
||||
// Rewarded ad was displayed and user should receive the reward.
|
||||
logCallback()
|
||||
|
|
|
@ -30,21 +30,21 @@ class LayoutEditorBannerAdActivity : BaseAdActivity(),
|
|||
|
||||
//region MAX Ad Listener
|
||||
|
||||
override fun onAdLoaded(ad: MaxAd?) { logCallback() }
|
||||
override fun onAdLoaded(ad: MaxAd) { logCallback() }
|
||||
|
||||
override fun onAdLoadFailed(adUnitId: String?, errorCode: Int) { logCallback() }
|
||||
override fun onAdLoadFailed(adUnitId: String, errorCode: Int) { logCallback() }
|
||||
|
||||
override fun onAdHidden(ad: MaxAd?) { logCallback() }
|
||||
override fun onAdHidden(ad: MaxAd) { logCallback() }
|
||||
|
||||
override fun onAdDisplayFailed(ad: MaxAd?, errorCode: Int) { logCallback() }
|
||||
override fun onAdDisplayFailed(ad: MaxAd, errorCode: Int) { logCallback() }
|
||||
|
||||
override fun onAdDisplayed(ad: MaxAd?) { logCallback() }
|
||||
override fun onAdDisplayed(ad: MaxAd) { logCallback() }
|
||||
|
||||
override fun onAdClicked(ad: MaxAd?) { logCallback() }
|
||||
override fun onAdClicked(ad: MaxAd) { logCallback() }
|
||||
|
||||
override fun onAdExpanded(ad: MaxAd?) { logCallback() }
|
||||
override fun onAdExpanded(ad: MaxAd) { logCallback() }
|
||||
|
||||
override fun onAdCollapsed(ad: MaxAd?) { logCallback() }
|
||||
override fun onAdCollapsed(ad: MaxAd) { logCallback() }
|
||||
|
||||
//endregion
|
||||
}
|
||||
|
|
|
@ -47,21 +47,21 @@ class ProgrammaticBannerAdActivity : BaseAdActivity(),
|
|||
|
||||
//region MAX Ad Listener
|
||||
|
||||
override fun onAdLoaded(ad: MaxAd?) { logCallback() }
|
||||
override fun onAdLoaded(ad: MaxAd) { logCallback() }
|
||||
|
||||
override fun onAdLoadFailed(adUnitId: String?, errorCode: Int) { logCallback() }
|
||||
override fun onAdLoadFailed(adUnitId: String, errorCode: Int) { logCallback() }
|
||||
|
||||
override fun onAdHidden(ad: MaxAd?) { logCallback() }
|
||||
override fun onAdHidden(ad: MaxAd) { logCallback() }
|
||||
|
||||
override fun onAdDisplayFailed(ad: MaxAd?, errorCode: Int) { logCallback() }
|
||||
override fun onAdDisplayFailed(ad: MaxAd, errorCode: Int) { logCallback() }
|
||||
|
||||
override fun onAdDisplayed(ad: MaxAd?) { logCallback() }
|
||||
override fun onAdDisplayed(ad: MaxAd) { logCallback() }
|
||||
|
||||
override fun onAdClicked(ad: MaxAd?) { logCallback() }
|
||||
override fun onAdClicked(ad: MaxAd) { logCallback() }
|
||||
|
||||
override fun onAdExpanded(ad: MaxAd?) { logCallback() }
|
||||
override fun onAdExpanded(ad: MaxAd) { logCallback() }
|
||||
|
||||
override fun onAdCollapsed(ad: MaxAd?) { logCallback() }
|
||||
override fun onAdCollapsed(ad: MaxAd) { logCallback() }
|
||||
|
||||
//endregion
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче