@@ -467,6 +467,17 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAInterstitialAdDelegate_")
467
467
@end
468
468
469
469
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
+
470
481
SWIFT_CLASS("_TtC8TeadsSDK9TFAReward")
471
482
@interface TFAReward : NSObject
472
483
@property (nonatomic, copy) NSString * _Nullable type;
@@ -624,6 +635,17 @@ SWIFT_CLASS("_TtC8TeadsSDK15TeadsAdSettings")
624
635
- (void)setUsPrivacyWithConsent:(NSString * _Nonnull)consent;
625
636
/// Prevent to automatically set UIDevice.current.isBatteryMonitoringEnabled
626
637
- (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;
627
649
/// Add extra informations to settings
628
650
/// \param value extra value
629
651
///
@@ -771,8 +793,6 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
771
793
772
794
773
795
774
-
775
-
776
796
@interface UIImage (SWIFT_EXTENSION(TeadsSDK))
777
797
+ (void)loadSyncWithUrl:(NSString * _Nonnull)url callback:(void (^ _Nonnull)(UIImage * _Nonnull))callback;
778
798
@end
@@ -793,6 +813,8 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
793
813
794
814
795
815
816
+
817
+
796
818
#if __has_attribute(external_source_symbol)
797
819
# pragma clang attribute pop
798
820
#endif
@@ -1262,6 +1284,17 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAInterstitialAdDelegate_")
1262
1284
@end
1263
1285
1264
1286
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
+
1265
1298
SWIFT_CLASS("_TtC8TeadsSDK9TFAReward")
1266
1299
@interface TFAReward : NSObject
1267
1300
@property (nonatomic, copy) NSString * _Nullable type;
@@ -1419,6 +1452,17 @@ SWIFT_CLASS("_TtC8TeadsSDK15TeadsAdSettings")
1419
1452
- (void)setUsPrivacyWithConsent:(NSString * _Nonnull)consent;
1420
1453
/// Prevent to automatically set UIDevice.current.isBatteryMonitoringEnabled
1421
1454
- (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;
1422
1466
/// Add extra informations to settings
1423
1467
/// \param value extra value
1424
1468
///
@@ -1566,8 +1610,6 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
1566
1610
1567
1611
1568
1612
1569
-
1570
-
1571
1613
@interface UIImage (SWIFT_EXTENSION(TeadsSDK))
1572
1614
+ (void)loadSyncWithUrl:(NSString * _Nonnull)url callback:(void (^ _Nonnull)(UIImage * _Nonnull))callback;
1573
1615
@end
@@ -1588,6 +1630,8 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
1588
1630
1589
1631
1590
1632
1633
+
1634
+
1591
1635
#if __has_attribute(external_source_symbol)
1592
1636
# pragma clang attribute pop
1593
1637
#endif
@@ -2061,6 +2105,17 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAInterstitialAdDelegate_")
2061
2105
@end
2062
2106
2063
2107
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
+
2064
2119
SWIFT_CLASS("_TtC8TeadsSDK9TFAReward")
2065
2120
@interface TFAReward : NSObject
2066
2121
@property (nonatomic, copy) NSString * _Nullable type;
@@ -2218,6 +2273,17 @@ SWIFT_CLASS("_TtC8TeadsSDK15TeadsAdSettings")
2218
2273
- (void)setUsPrivacyWithConsent:(NSString * _Nonnull)consent;
2219
2274
/// Prevent to automatically set UIDevice.current.isBatteryMonitoringEnabled
2220
2275
- (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;
2221
2287
/// Add extra informations to settings
2222
2288
/// \param value extra value
2223
2289
///
@@ -2365,8 +2431,6 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
2365
2431
2366
2432
2367
2433
2368
-
2369
-
2370
2434
@interface UIImage (SWIFT_EXTENSION(TeadsSDK))
2371
2435
+ (void)loadSyncWithUrl:(NSString * _Nonnull)url callback:(void (^ _Nonnull)(UIImage * _Nonnull))callback;
2372
2436
@end
@@ -2387,6 +2451,8 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
2387
2451
2388
2452
2389
2453
2454
+
2455
+
2390
2456
#if __has_attribute(external_source_symbol)
2391
2457
# pragma clang attribute pop
2392
2458
#endif
@@ -2856,6 +2922,17 @@ SWIFT_PROTOCOL("_TtP8TeadsSDK25TFAInterstitialAdDelegate_")
2856
2922
@end
2857
2923
2858
2924
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
+
2859
2936
SWIFT_CLASS("_TtC8TeadsSDK9TFAReward")
2860
2937
@interface TFAReward : NSObject
2861
2938
@property (nonatomic, copy) NSString * _Nullable type;
@@ -3013,6 +3090,17 @@ SWIFT_CLASS("_TtC8TeadsSDK15TeadsAdSettings")
3013
3090
- (void)setUsPrivacyWithConsent:(NSString * _Nonnull)consent;
3014
3091
/// Prevent to automatically set UIDevice.current.isBatteryMonitoringEnabled
3015
3092
- (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;
3016
3104
/// Add extra informations to settings
3017
3105
/// \param value extra value
3018
3106
///
@@ -3160,8 +3248,6 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
3160
3248
3161
3249
3162
3250
3163
-
3164
-
3165
3251
@interface UIImage (SWIFT_EXTENSION(TeadsSDK))
3166
3252
+ (void)loadSyncWithUrl:(NSString * _Nonnull)url callback:(void (^ _Nonnull)(UIImage * _Nonnull))callback;
3167
3253
@end
@@ -3182,6 +3268,8 @@ SWIFT_CLASS("_TtC8TeadsSDK16TeadsNativeAsset")
3182
3268
3183
3269
3184
3270
3271
+
3272
+
3185
3273
#if __has_attribute(external_source_symbol)
3186
3274
# pragma clang attribute pop
3187
3275
#endif
0 commit comments