@@ -467,6 +467,17 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAInterstitialAdDelegate_")
467467@end
468468
469469
470+ SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAMediatedAdViewDelegate_")
471+ @protocol TFAMediatedAdViewDelegate
472+ /// Called when the ad ratio is udpated.
473+ /// \param adView The adView in which the ad is being played.
474+ ///
475+ /// \param ratio The ratio you should use to update your adView height.
476+ ///
477+ - (void)didUpdateRatio:(UIView * _Nonnull)adView ratio:(CGFloat)ratio;
478+ @end
479+
480+
470481SWIFT_CLASS("_TtC8TeadsSDK9TFAReward")
471482@interface TFAReward : NSObject
472483@property (nonatomic, copy) NSString * _Nullable type;
@@ -624,6 +635,17 @@ SWIFT_CLASS("_TtC8TeadsSDK15TeadsAdSettings")
624635- (void)setUsPrivacyWithConsent:(NSString * _Nonnull)consent;
625636/// Prevent to automatically set UIDevice.current.isBatteryMonitoringEnabled
626637- (void)disableBatteryMonitoring;
638+ /// Subscribe a delegate class which will be in charge of resizing your ad size.
639+ /// warning:
640+ /// To be used only in case your ads are running through mediation !
641+ /// \param delegate The class conforming to TFAMediatedAdViewDelegate where adView resizing will be done.
642+ ///
643+ /// \param adView Your mediated ad view which contains your ad.
644+ ///
645+ ///
646+ /// throws:
647+ /// Error if given adView is not resizable.
648+ - (BOOL)subscribeAdResizeDelegate:(id <TFAMediatedAdViewDelegate> _Nonnull)delegate forAdView:(UIView * _Nonnull)adView error:(NSError * _Nullable * _Nullable)error;
627649/// Add extra informations to settings
628650/// \param value extra value
629651///
@@ -771,8 +793,6 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
771793
772794
773795
774-
775-
776796@interface UIImage (SWIFT_EXTENSION(TeadsSDK))
777797+ (void)loadSyncWithUrl:(NSString * _Nonnull)url callback:(void (^ _Nonnull)(UIImage * _Nonnull))callback;
778798@end
@@ -793,6 +813,8 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
793813
794814
795815
816+
817+
796818#if __has_attribute(external_source_symbol)
797819# pragma clang attribute pop
798820#endif
@@ -1262,6 +1284,17 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAInterstitialAdDelegate_")
12621284@end
12631285
12641286
1287+ SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAMediatedAdViewDelegate_")
1288+ @protocol TFAMediatedAdViewDelegate
1289+ /// Called when the ad ratio is udpated.
1290+ /// \param adView The adView in which the ad is being played.
1291+ ///
1292+ /// \param ratio The ratio you should use to update your adView height.
1293+ ///
1294+ - (void)didUpdateRatio:(UIView * _Nonnull)adView ratio:(CGFloat)ratio;
1295+ @end
1296+
1297+
12651298SWIFT_CLASS("_TtC8TeadsSDK9TFAReward")
12661299@interface TFAReward : NSObject
12671300@property (nonatomic, copy) NSString * _Nullable type;
@@ -1419,6 +1452,17 @@ SWIFT_CLASS("_TtC8TeadsSDK15TeadsAdSettings")
14191452- (void)setUsPrivacyWithConsent:(NSString * _Nonnull)consent;
14201453/// Prevent to automatically set UIDevice.current.isBatteryMonitoringEnabled
14211454- (void)disableBatteryMonitoring;
1455+ /// Subscribe a delegate class which will be in charge of resizing your ad size.
1456+ /// warning:
1457+ /// To be used only in case your ads are running through mediation !
1458+ /// \param delegate The class conforming to TFAMediatedAdViewDelegate where adView resizing will be done.
1459+ ///
1460+ /// \param adView Your mediated ad view which contains your ad.
1461+ ///
1462+ ///
1463+ /// throws:
1464+ /// Error if given adView is not resizable.
1465+ - (BOOL)subscribeAdResizeDelegate:(id <TFAMediatedAdViewDelegate> _Nonnull)delegate forAdView:(UIView * _Nonnull)adView error:(NSError * _Nullable * _Nullable)error;
14221466/// Add extra informations to settings
14231467/// \param value extra value
14241468///
@@ -1566,8 +1610,6 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
15661610
15671611
15681612
1569-
1570-
15711613@interface UIImage (SWIFT_EXTENSION(TeadsSDK))
15721614+ (void)loadSyncWithUrl:(NSString * _Nonnull)url callback:(void (^ _Nonnull)(UIImage * _Nonnull))callback;
15731615@end
@@ -1588,6 +1630,8 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
15881630
15891631
15901632
1633+
1634+
15911635#if __has_attribute(external_source_symbol)
15921636# pragma clang attribute pop
15931637#endif
@@ -2061,6 +2105,17 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAInterstitialAdDelegate_")
20612105@end
20622106
20632107
2108+ SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAMediatedAdViewDelegate_")
2109+ @protocol TFAMediatedAdViewDelegate
2110+ /// Called when the ad ratio is udpated.
2111+ /// \param adView The adView in which the ad is being played.
2112+ ///
2113+ /// \param ratio The ratio you should use to update your adView height.
2114+ ///
2115+ - (void)didUpdateRatio:(UIView * _Nonnull)adView ratio:(CGFloat)ratio;
2116+ @end
2117+
2118+
20642119SWIFT_CLASS("_TtC8TeadsSDK9TFAReward")
20652120@interface TFAReward : NSObject
20662121@property (nonatomic, copy) NSString * _Nullable type;
@@ -2218,6 +2273,17 @@ SWIFT_CLASS("_TtC8TeadsSDK15TeadsAdSettings")
22182273- (void)setUsPrivacyWithConsent:(NSString * _Nonnull)consent;
22192274/// Prevent to automatically set UIDevice.current.isBatteryMonitoringEnabled
22202275- (void)disableBatteryMonitoring;
2276+ /// Subscribe a delegate class which will be in charge of resizing your ad size.
2277+ /// warning:
2278+ /// To be used only in case your ads are running through mediation !
2279+ /// \param delegate The class conforming to TFAMediatedAdViewDelegate where adView resizing will be done.
2280+ ///
2281+ /// \param adView Your mediated ad view which contains your ad.
2282+ ///
2283+ ///
2284+ /// throws:
2285+ /// Error if given adView is not resizable.
2286+ - (BOOL)subscribeAdResizeDelegate:(id <TFAMediatedAdViewDelegate> _Nonnull)delegate forAdView:(UIView * _Nonnull)adView error:(NSError * _Nullable * _Nullable)error;
22212287/// Add extra informations to settings
22222288/// \param value extra value
22232289///
@@ -2365,8 +2431,6 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
23652431
23662432
23672433
2368-
2369-
23702434@interface UIImage (SWIFT_EXTENSION(TeadsSDK))
23712435+ (void)loadSyncWithUrl:(NSString * _Nonnull)url callback:(void (^ _Nonnull)(UIImage * _Nonnull))callback;
23722436@end
@@ -2387,6 +2451,8 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
23872451
23882452
23892453
2454+
2455+
23902456#if __has_attribute(external_source_symbol)
23912457# pragma clang attribute pop
23922458#endif
@@ -2856,6 +2922,17 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAInterstitialAdDelegate_")
28562922@end
28572923
28582924
2925+ SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAMediatedAdViewDelegate_")
2926+ @protocol TFAMediatedAdViewDelegate
2927+ /// Called when the ad ratio is udpated.
2928+ /// \param adView The adView in which the ad is being played.
2929+ ///
2930+ /// \param ratio The ratio you should use to update your adView height.
2931+ ///
2932+ - (void)didUpdateRatio:(UIView * _Nonnull)adView ratio:(CGFloat)ratio;
2933+ @end
2934+
2935+
28592936SWIFT_CLASS("_TtC8TeadsSDK9TFAReward")
28602937@interface TFAReward : NSObject
28612938@property (nonatomic, copy) NSString * _Nullable type;
@@ -3013,6 +3090,17 @@ SWIFT_CLASS("_TtC8TeadsSDK15TeadsAdSettings")
30133090- (void)setUsPrivacyWithConsent:(NSString * _Nonnull)consent;
30143091/// Prevent to automatically set UIDevice.current.isBatteryMonitoringEnabled
30153092- (void)disableBatteryMonitoring;
3093+ /// Subscribe a delegate class which will be in charge of resizing your ad size.
3094+ /// warning:
3095+ /// To be used only in case your ads are running through mediation !
3096+ /// \param delegate The class conforming to TFAMediatedAdViewDelegate where adView resizing will be done.
3097+ ///
3098+ /// \param adView Your mediated ad view which contains your ad.
3099+ ///
3100+ ///
3101+ /// throws:
3102+ /// Error if given adView is not resizable.
3103+ - (BOOL)subscribeAdResizeDelegate:(id <TFAMediatedAdViewDelegate> _Nonnull)delegate forAdView:(UIView * _Nonnull)adView error:(NSError * _Nullable * _Nullable)error;
30163104/// Add extra informations to settings
30173105/// \param value extra value
30183106///
@@ -3160,8 +3248,6 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
31603248
31613249
31623250
3163-
3164-
31653251@interface UIImage (SWIFT_EXTENSION(TeadsSDK))
31663252+ (void)loadSyncWithUrl:(NSString * _Nonnull)url callback:(void (^ _Nonnull)(UIImage * _Nonnull))callback;
31673253@end
@@ -3182,6 +3268,8 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
31823268
31833269
31843270
3271+
3272+
31853273#if __has_attribute(external_source_symbol)
31863274# pragma clang attribute pop
31873275#endif
0 commit comments