Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion source/Google/MobileAds/ApiDefinition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,29 @@ interface UnifiedNativeAdLoaderDelegate : AdLoaderDelegate {
void DidReceiveUnifiedNativeAd (AdLoader adLoader, NativeAd nativeAd);
}

interface ICustomNativeAdLoaderDelegate {
}

// @protocol GADCustomNativeAdLoaderDelegate <GADAdLoaderDelegate>
#if NET
[Model]
#else
[Model (AutoGeneratedName = true)]
#endif
[Protocol]
[BaseType (typeof (NSObject), Name = "GADCustomNativeAdLoaderDelegate")]
interface CustomNativeAdLoaderDelegate : AdLoaderDelegate {
// @required - (NSArray<NSString *> * _Nonnull)customNativeAdFormatIDsForAdLoader: (GADAdLoader * _Nonnull)adLoader;
[Abstract]
[Export ("customNativeAdFormatIDsForAdLoader:")]
string[] CustomNativeAdFormatIdsForAdLoader (AdLoader adLoader);

// @required - (void)adLoader: (GADAdLoader * _Nonnull)adLoader didReceiveCustomNativeAd: (GADCustomNativeAd * _Nonnull)customNativeAd;
[Abstract]
[Export ("adLoader:didReceiveCustomNativeAd:")]
void AdLoader (AdLoader adLoader, CustomNativeAd customNativeAd);
}

// @interface GADNativeAdView : UIView
[BaseType (typeof (UIView), Name = "GADNativeAdView")]
interface NativeAdView {
Expand Down Expand Up @@ -1141,7 +1164,7 @@ interface CustomNativeAd {
// @property(atomic, copy, nullable) GADNativeAdCustomClickHandler customClickHandler;
[NullAllowed]
[Export ("customClickHandler", ArgumentSemantic.Copy)]
NativeAdCustomClickHandle CustomClickHandler { get; }
NativeAdCustomClickHandle CustomClickHandler { get; set; }

// @property(nonatomic, readonly, nullable) GADDisplayAdMeasurement *displayAdMeasurement;
[NullAllowed]
Expand Down