From 1fbbd4cdb0269363ce9ec925d8181368bf73eec1 Mon Sep 17 00:00:00 2001 From: "Renat.Mir" Date: Mon, 13 Dec 2021 23:40:56 +0800 Subject: [PATCH] add AppEventDelegate to the public delegates and events --- source/Google/MobileAds/ApiDefinition.cs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/source/Google/MobileAds/ApiDefinition.cs b/source/Google/MobileAds/ApiDefinition.cs index 0740aefb3..190d1e763 100644 --- a/source/Google/MobileAds/ApiDefinition.cs +++ b/source/Google/MobileAds/ApiDefinition.cs @@ -178,8 +178,8 @@ interface AdReward { [BaseType (typeof (UIView), Name = "GADBannerView", - Delegates = new string [] { "Delegate", "AdSizeDelegate" }, - Events = new Type [] { typeof (BannerViewDelegate), typeof (AdSizeDelegate) })] + Delegates = new string [] { "Delegate", "AdSizeDelegate", "AppEventDelegate" }, + Events = new Type [] { typeof (BannerViewDelegate), typeof (AdSizeDelegate), typeof(AppEventDelegate) })] interface BannerView { [Export ("initWithFrame:")] @@ -211,6 +211,10 @@ interface BannerView { [Export ("delegate", ArgumentSemantic.Weak)] IBannerViewDelegate Delegate { get; set; } + [NullAllowed] + [Export ("appEventDelegate", ArgumentSemantic.Weak)] + IAppEventDelegate AppEventDelegate { get; set; } + [Obsolete] [NullAllowed] [Export ("inAppPurchaseDelegate", ArgumentSemantic.Weak)] @@ -899,9 +903,11 @@ interface IAppEventDelegate { [Protocol] [BaseType (typeof (NSObject), Name = "GADAppEventDelegate")] interface AppEventDelegate { + [EventArgs ("AppEventDidReceiveAppEvent")] [Export ("adView:didReceiveAppEvent:withInfo:")] void AdViewDidReceiveAppEvent (BannerView banner, string name, [NullAllowed] string info); + [EventArgs ("AppEventDidReceiveAppEvent")] [Export ("interstitial:didReceiveAppEvent:withInfo:")] void InterstitialDidReceiveAppEvent (Interstitial interstitial, string name, [NullAllowed] string info); } @@ -2582,8 +2588,8 @@ interface BannerAdLoaderDelegate : Google.MobileAds.AdLoaderDelegate { [BaseType (typeof (Google.MobileAds.BannerView), Name = "DFPBannerView", - Delegates = new string [] { "AdSizeDelegate" }, - Events = new Type [] { typeof (Google.MobileAds.AdSizeDelegate) })] + Delegates = new string [] { "AdSizeDelegate", "AppEventDelegate" }, + Events = new Type [] { typeof (Google.MobileAds.AdSizeDelegate), typeof(Google.MobileAds.AppEventDelegate) })] interface BannerView { [Export ("initWithFrame:")]