Skip to content

Commit

Permalink
added new method overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
WildSpy committed Aug 17, 2022
1 parent 1d38228 commit bfc0ab1
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.yandex.mobile.ads.banner.BannerAdView;
import com.yandex.mobile.ads.common.AdRequest;
import com.yandex.mobile.ads.common.AdRequestError;
import com.yandex.mobile.ads.common.ImpressionData;


public class BannerView extends ReactViewGroup implements BannerAdEventListener, LifecycleEventListener {
Expand Down Expand Up @@ -72,6 +73,16 @@ public void onHostPause() {

}

@Override
public void onImpression(ImpressionData impressionData) {

}

@Override
public void onAdClicked() {

}

@Override
public void onHostDestroy() {
if (myAdView != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.yandex.mobile.ads.common.AdRequestError;
import com.yandex.mobile.ads.interstitial.InterstitialAd;
import com.yandex.mobile.ads.interstitial.InterstitialAdEventListener;
import com.yandex.mobile.ads.common.ImpressionData;

public class InterstitialAdManager extends ReactContextBaseJavaModule implements InterstitialAdEventListener, LifecycleEventListener {

Expand Down Expand Up @@ -69,6 +70,16 @@ public void onHostPause() {

}

@Override
public void onImpression(ImpressionData impressionData) {

}

@Override
public void onAdClicked() {

}

@Override
public void onHostDestroy() {
cleanUp();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.yandex.mobile.ads.rewarded.Reward;
import com.yandex.mobile.ads.rewarded.RewardedAd;
import com.yandex.mobile.ads.rewarded.RewardedAdEventListener;
import com.yandex.mobile.ads.common.ImpressionData;

public class RewardedAdManager extends ReactContextBaseJavaModule implements RewardedAdEventListener, LifecycleEventListener {

Expand Down Expand Up @@ -70,6 +71,16 @@ public void onHostPause() {

}

@Override
public void onImpression(ImpressionData impressionData) {

}

@Override
public void onAdClicked() {

}

@Override
public void onHostDestroy() {
cleanUp();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-yandex-mobile-ads",
"version": "0.3.4",
"version": "0.3.5",
"description": "Implementation Yandex ads for react native",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down

0 comments on commit bfc0ab1

Please sign in to comment.